https://bugs.kde.org/show_bug.cgi?id=499194
Bug ID: 499194
Summary: Recording empty
Classification: Applications
Product: Heaptrack
Version: 1.5.0
Platform: Manjaro
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
SUMMARY
I want to record a heap profile of my webserver. This is a long running process
that I start under heaptrack, but I have to stop it using Ctrl+C. When I do
that, I get an empty heaptrack.*.zst file. If my program exits on its own the
recording is fine.
Seems like some sort of stream/pipe buffering issue to me (pipe going to
zstd?).
STEPS TO REPRODUCE
1. `heaptrack ./target/debug/website`
2. `ls -alh heaptrack.*`
OBSERVED RESULT
```
$ heaptrack ./target/debug/website
heaptrack output will be written to
"/home/peter/Programming/website/heaptrack.website.40763.zst"
starting application, this might take some time...
NOTE: heaptrack detected DEBUGINFOD_URLS but will disable it to prevent
unintended network delays during recording
If you really want to use DEBUGINFOD, export HEAPTRACK_ENABLE_DEBUGINFOD=1
^CHeaptrack finished! Now run the following to investigate the data:
heaptrack --analyze
"/home/peter/Programming/website/heaptrack.website.40763.zst"
heaptrack_gui detected, automatically opening the file...
heaptrack stats:
allocations: 478
leaked allocations: 379
temporary allocations: 17
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use
QT_QPA_PLATFORM=wayland to run on Wayland anyway.
$ ls -alh heaptrack.*
-rw-r--r-- 1 peter peter 0 Jan 27 14:29 heaptrack.website.40763.zst
```
EXPECTED RESULT
File not empty, GUI that opens to not be empty...
--
You are receiving this mail because:
You are watching all bug changes.