9front - general discussion about 9front
 help / color / mirror / Atom feed
From: sirjofri <sirjofri+ml-9front@sirjofri.de>
To: 9front@9front.org
Subject: [9front] prof profiler changing program result
Date: Sat, 9 Dec 2023 19:29:29 +0100 (GMT+01:00)	[thread overview]
Message-ID: <c27b29a0-d34e-4f53-898f-718797a46ca4@sirjofri.de> (raw)

Hello,

today I did an implementation of mandelbrot and learned to use prof to profile my program. I noticed that the mandelbrot result is different when linked using -p. Instead of the nice mandelbrot image I get a circle (but still with lots of details). Funnily enough, julia seems to work better.

Since my installation of 9front isn't always up to date that issue might already be fixed. I also doubt that the issue appears very often, and I didn't find any notes about issues like that when reading prof(1).

For reproduction, find this small repository: https://shithub.us/sirjofri/fractals/HEAD/info.html .

You should be able to just run `mk` to build the program, and use `mk test` to build sample images. The mkfile contains a commented out "-p" ldflag which you can use to reproduce the issue.

In general, I don't expect anyone to go this far at this stage (or at all). I'll probably take a deeper look and try to find out what's happening. Did anyone encounter other (or similar) issues when using prof and the -p flag?

sirjofri

             reply	other threads:[~2023-12-09 18:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-09 18:29 sirjofri [this message]
2023-12-09 19:05 ` Steve Simon
2023-12-13  3:28 ` Amavect
2023-12-15 10:21   ` sirjofri

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c27b29a0-d34e-4f53-898f-718797a46ca4@sirjofri.de \
    --to=sirjofri+ml-9front@sirjofri.de \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).