Questions tagged [kcachegrind]
Visual support for the cachegrind skin of the memory analyzer Valgrind. (For questions related to cachegrind only, use the cachegrind tag)
kcachegrind
98
questions
0
votes
0
answers
31
views
Calles in KCachegrind
Question for KCachegrind experts. I couldn't find a description for the "Self" field in the "All Callees" table. Can you please tell me what data is displayed there?
The site has a ...
1
vote
1
answer
413
views
PHP profiling in VS Code is not showing call times
I'm using VS Code and particularly the "PHP" extension to open cachegrind files that I have xdebug generating. When I open the file in Qcachegrind, it shows everything correctly including ...
1
vote
0
answers
44
views
How can I visualize GNU remake profile data for multithreaded processes
I'm trying to profile a large multi-threaded Make-based system.
I recently found GNU remake and was able to use it as a drop-in replacement for gmake.
Since my system is multi-threaded and also has ...
0
votes
0
answers
129
views
KCachegrind output
I don't understand why my Kcachegrind's output is in this form
I'm compiling with
$valgrind --tool=callgrind --callgrind-out-file=outputfile ./main.c
$kcachegrind outputfile
Can someone help me with ...
0
votes
0
answers
199
views
KCacheGrind/CallGrind - wrong relative timing
I am using valgrind to profile a program. The valgrind measurements shows a wrong relative runtime - it seems from the callgrind log that function1 has a longer runtime than function 2, although when ...
0
votes
1
answer
669
views
Callgrind / kcachegrind why does running a program in valgrind increase sysCall time?
I've been profiling some code which likely spends a lot of it's execution time in system calls. Timing some functions manually and with callgrind, callgrind reports system call times of around 20, 30 ...
0
votes
0
answers
250
views
Callgrind / kcachegrind call graph output implies functions call eachother when they don't
I'm profiling C++ code using callgrind and then visualizing it in kcachegrind.
For example, if my program is:
main() {
function1();
function2();
}
I would expect main() to have two edges, one ...
1
vote
1
answer
385
views
Boost graph: speeding up add_edge
I have a boost graph application where I need to call the function add_edge( ) [documentation available here].
Profiling this application with KCachegrind reveals the following breakup of time spent:
...
0
votes
0
answers
118
views
Valgrind ignore templates in output
I'm using valgrind [callgrind] to profile a C++ executable, and KCachegrind to display the results. However, the function names are all but unreadable due to endless template names before the actual ...
0
votes
0
answers
109
views
Simple constant getter is creating a cache miss? (C++)
I am currently benchmarking a program on a Linux system with Valgrind.
I have this strange cache miss with the getter method const int GetID() const,
but I can't really explain where it came from. ...
8
votes
1
answer
1k
views
Python profiling: KCacheGrind + Yappi keeps displaying an unknown function
I want to profile my Python program to understand why it is so slow. I decided to use Yappi - because my program is multithreaded - and to diplay the results with KCacheGrind. Here is how I do it:
# ...
0
votes
1
answer
68
views
Cachegring file very small
I am new to profiling. I am trying to profile my PHP with xdebug.
The cachegrind file is created but has no significant content
I have set xdebug.profiler_enable_trigger = 1
xdebug....
2
votes
1
answer
722
views
Callgrind: how to pass relative path to source code?
I'm using valgrind's callgrind to profile a program and then kcachegrind to view the profile data. I've copied callgrind's output file to a different machine and have a copy of the source code there, ...
0
votes
1
answer
607
views
how to install kcachegrind on linux or cirrus?
I am working on a cirrus machine, having my C code profiled. I have Valgrind installed on it. But the output I get from --tool=callgrind is barely understandable, hence I want to use kcachegrind tool. ...
1
vote
1
answer
1k
views
read debug symbols when source file was relocated
When using kcachegrind or just objdump -C -l -d somelib.so I noticed that some debug information in my shared libraries is not up to date, due to the copy process from the local file system of the ...