treeform / hottie

Sampling profiler that finds hot paths in your code.
MIT License
43 stars 1 forks source link

Lets target Program in the Background and Hottie itself quits instantly #11

Open theAkito opened 2 years ago

theAkito commented 2 years ago

Compiling my program like this:

  exec """nim c \
            --passL:"-no-pie" \
            --define:ssl \
            --define:danger \
            --debugger:native \
            --out:procwatch \
            src/procwatch
       """

Result from hottie:

Running objdump...
Program ended
 samples           time   percent what
       1          infms      inf% 
Samples per second: 0.0 totalTime: 0.000ms

But the target program keeps running in the background.

The program I try to profile: https://github.com/theAkito/procwatch