Re: Partial heap profiling with Massif
Milian Wolff <[email protected]>
| Newsgroups | gmane.comp.debugging.valgrind |
|---|---|
| Message-ID | <5502141.3DAzP6NSLs@milian-workstation> |
On Donnerstag, 17. September 2020 15:32:04 CEST John Reiser wrote: > On 2020-09-17 LEPAREUR Loic wrote: > > Several years ago, I developed a Massif patch to let the client code > > select which part of the code should be profiled with Massif. > Today this is much less interesting unless you compare and contrast with > https://github.com/KDE/heaptrack . Do a web search for "heaptrack vs > massif". Consider particularly "A Faster Massif" in > https://milianw.de/tag/heaptrack , and > https://milianw.de/tag/massif-visualizer . In other news: I just pushed a bunch of patches to heaptrack git which allow you to do time-diffing. I.e. you can now select a time range in the charts and then request filtering to show the delta costs between the two time points. This should allow you to solve your problem nicely. Alternatively, you can also runtime-attach heaptrack after you finished your initialization phase to only record the main computational loop. The overhead should be minimal or actually close to zero when your main loop isn't allocating anything. Cheers -- Milian Wolff [email protected] http://milianw.de _______________________________________________ Valgrind-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/valgrind-users
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEezawi1aUvUGg3A1+8zYW/HGdOX8FAl9owPUACgkQ8zYW/HGd OX+MghAArvD2LItFuvmQn9g5RtAiKg8GSWmECq9acGFxNN8W0H+DWg8TykDrNyvf rQlwo9/WHsx1KRF32f8C5292E14upU3mUIDv8W6rP7xPeTu5TvjOkmVu7Q2xJIk2 ojMGsCRfMKZCKluqlOsN3Kenj3sW7Af3YZSURiPl+CSFIWH8YgbxwINxGhWBa9zm Ewfpl+PTZacmb3Y7v3Fq5luLyNS4R1ZMb2IQ1mh2T3YJUF2AqTJDXk4NnmaZlgPO kBpTqcb0N72P1rX/KdwGUmp899j5NGgglUQLF1HndEVhjhyB2reLy9JOaXLNYYSN GCj9iJv7cx7Ppq/o/7r4uiMtSwzkLvHYkhma4LtWXDgfqKkANmApDDD9FPQXKiz7 B5ULw7vOA3608nuXHgNt8k4YRuaQx9WjMk6W6RAlFTY6nOd9ylDO1eeqpM/737Zx gSWJrwkiOlheVt8EAEDj0u/DiR8wNzQj3h/8oJtyBNo5sdjvCbY7uHUZrhoQLldR qecRC0tegikLJDQvWfH1ymBkap8n3Fb45+GXPrYQ/BU1f3oS9xsdlL5dZ4jUBhzU 1u28BvB4kiulnzufahwbf4BykkGIyXzEMKgCRCwHZQWhOqWCMGVKaD7Pkc9vXTf2 YUv/aTQoR7LK+fswlu04IVIX6833r3l/6yEfBgjY0/SB/LFnX9w= =Rh+D -----END PGP SIGNATURE-----