https://bugs.kde.org/show_bug.cgi?id=406578
Bug ID: 406578
Summary: More general Access Counts
Product: valgrind
Version: unspecified
Platform: Debian stable
OS: Linux
Status: REPORTED
Severity: wishlist
Priority: NOR
Component: dhat
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
SUMMARY
One of the limitations on DHAT is that it always summarizes the access counts
under either acc-ratio or the "Aggregated access counts by offset" table. I
might have the question "how many times was an allocator accessed" as a very
general question. "What is the read count of any width at any offset across all
of blocks." As it stands, I must carefully look at the "Aggregated access
counts by offset" tables to determine how large each field in a struct is and
carefully add up the numbers. If the "Aggregated access counts by offset" table
isn't available, then I can guess the size of elements in a list, then
calculate acc-ratio*average-block-size/guessed-width.
OBSERVED RESULT
==48857== -------------------- 4 of 100000 --------------------
==48857== max-live: 2,097,152 in 1 blocks
==48857== tot-alloc: 4,194,302 in 21 blocks (avg size 199728.66)
==48857== deaths: 21, at avg age 23,607,512 (0.00% of prog lifetime)
==48857== acc-ratios: 0.49 rd, 0.00 wr (2,097,130 b-read, 0 b-written)
==48857== at 0x4C2DE45: calloc (in
/usr/lib/valgrind/vgpreload_exp-dhat-amd64-linux.so)
==48857== by 0x4040FA: quantum_gate1 (gates.c:361)
==48857== by 0x407BD7: quantum_hadamard (gates.c:665)
==48857== by 0x41460A: main (shor.c:96)
EXPECTED RESULT
==48857== -------------------- 4 of 100000 --------------------
==48857== max-live: 2,097,152 in 1 blocks
==48857== tot-alloc: 4,194,302 in 21 blocks (avg size 199728.66)
==48857== deaths: 21, at avg age 23,607,512 (0.00% of prog lifetime)
==48857== acc-ratios: 0.49 rd, 0.00 wr (2,097,130 b-read in 65,535 rd, 0
b-written in 0 wr)
==48857== at 0x4C2DE45: calloc (in
/usr/lib/valgrind/vgpreload_exp-dhat-amd64-linux.so)
==48857== by 0x4040FA: quantum_gate1 (gates.c:361)
==48857== by 0x407BD7: quantum_hadamard (gates.c:665)
==48857== by 0x41460A: main (shor.c:96)
SOFTWARE/OS VERSIONS
Linux: Ubuntu 16.04.2 LTS (Xenial Xerus) GNU/Linux 4.4.0-138-generic
Valgrind: valgrind-3.11.0
--
You are receiving this mail because:
You are watching all bug changes.