kcachegrind

Is there any KCacheGrind alternative for Mac Os X outta there?

醉酒当歌 提交于 2019-12-04 16:17:27
问题 I'm looking for a KCacheGrind alternative, or at least a binary package for Mac Os X? I'd to use KCacheGrind with XDebug for PHP, but Mac Os X is the right environnement here... Thank you Edit: I know I can use MacPort but I'm looking for an alternative of this painful installation. Maybe something "in the mac way" 回答1: You can install KCacheGrind using MacPorts: sudo port install valgrind kcachegrind4 There are also some alternatives like: WebGrind qcachegrind ( brew install qcachegrind );

Which is the most reliable profiling tool gprof or kcachegrind?

两盒软妹~` 提交于 2019-12-04 14:33:26
问题 Profiling some C++ number crunching code with both gprof and kcachegrind gives similar results for the functions that contribute most to the execution time (50-80% depending on input) but for functions between 10-30% both these tools give different results. Does it mean one of them is not reliable? What would yo do here? 回答1: gprof is actually quite primitive. Here's what it does. 1) It samples the program counter at a constant rate and records how many samples land in each function

Which is the most reliable profiling tool gprof or kcachegrind?

佐手、 提交于 2019-12-03 09:05:10
Profiling some C++ number crunching code with both gprof and kcachegrind gives similar results for the functions that contribute most to the execution time (50-80% depending on input) but for functions between 10-30% both these tools give different results. Does it mean one of them is not reliable? What would yo do here? gprof is actually quite primitive. Here's what it does. 1) It samples the program counter at a constant rate and records how many samples land in each function (exclusive time). 2) It counts how many times any function A calls any function B. From that it can find out how many

Kcachegrind/callgrind is inaccurate for dispatcher functions?

故事扮演 提交于 2019-12-01 06:32:14
I have a model code on which kcachegrind/callgrind reports strange results. It is kind of dispatcher function. The dispatcher is called from 4 places; each call says, which actual do_J function to run (so the first2 will call only do_1 and do_2 and so on) Source (this is a model of actual code) #define N 1000000 int a[N]; int do_1(int *a) { int i; for(i=0;i<N/4;i++) a[i]+=1; } int do_2(int *a) { int i; for(i=0;i<N/2;i++) a[i]+=2; } int do_3(int *a) { int i; for(i=0;i<N*3/4;i++) a[i]+=3; } int do_4(int *a) { int i; for(i=0;i<N;i++) a[i]+=4; } int dispatcher(int *a, int j) { if(j==1) do_1(a);

Kcachegrind/callgrind is inaccurate for dispatcher functions?

为君一笑 提交于 2019-12-01 04:53:07
问题 I have a model code on which kcachegrind/callgrind reports strange results. It is kind of dispatcher function. The dispatcher is called from 4 places; each call says, which actual do_J function to run (so the first2 will call only do_1 and do_2 and so on) Source (this is a model of actual code) #define N 1000000 int a[N]; int do_1(int *a) { int i; for(i=0;i<N/4;i++) a[i]+=1; } int do_2(int *a) { int i; for(i=0;i<N/2;i++) a[i]+=2; } int do_3(int *a) { int i; for(i=0;i<N*3/4;i++) a[i]+=3; } int

Make callgrind show all function calls in the kcachegrind callgraph

荒凉一梦 提交于 2019-11-30 22:33:42
I was using valgrind tool - callgrind and kcachegrind for profiling a large project and was wondering if there is a way that callgrind reports the stats from all the functions (not just the most expensive functions). To be specific - When I visualized the callgraph in kcachegrind, it included only those functions that are quite expensive, but I was wondering if there is a way to include all the functions from the project in the callgraph. Command used for generating profiling info is given below : valgrind --dsymutil=yes --tool=callgrind $EXE I am not sure if I have to give any options to

KCachegrind interpretation confusion

谁说我不能喝 提交于 2019-11-29 21:20:48
I am trying to understand the values shown in Kcachegrind in the left panel I have Incl. (which I read in the manual is inclusive), Self, Called an Function Now I am analyzing this cachegrind file and I have Incl. ---- Self ---- Called ---- Function 100.05 ---- 0.04 ---- (0) ---- {main} 83.38 ---- 0.07 ---- 250 --- item->close 78.85 ---- 78.85 ---- 10 067 ---- php::mysql_query and the list continues.. But here is my problem. I think that the item->close is my bottleneck but what I don't understand is how it has 83.38 of Inclusive and then 0.07 of Self and the mysql_query command has the same

KCachegrind interpretation confusion

不羁岁月 提交于 2019-11-28 18:49:10
问题 I am trying to understand the values shown in Kcachegrind in the left panel I have Incl. (which I read in the manual is inclusive), Self, Called an Function Now I am analyzing this cachegrind file and I have Incl. ---- Self ---- Called ---- Function 100.05 ---- 0.04 ---- (0) ---- {main} 83.38 ---- 0.07 ---- 250 --- item->close 78.85 ---- 78.85 ---- 10 067 ---- php::mysql_query and the list continues.. But here is my problem. I think that the item->close is my bottleneck but what I don't

Using cProfile results with KCacheGrind

有些话、适合烂在心里 提交于 2019-11-26 18:15:49
I'm using cProfile to profile my Python program. Based upon this talk I was under the impression that KCacheGrind could parse and display the output from cProfile. However, when I go to import the file, KCacheGrind just displays an 'Unknown File Format' error in the status bar and sits there displaying nothing. Is there something special I need to do before my profiling stats are compatible with KCacheGrind? ... if profile: import cProfile profileFileName = 'Profiles/pythonray_' + time.strftime('%Y%m%d_%H%M%S') + '.profile' profile = cProfile.Profile() profile.run('pilImage = camera.render

Using cProfile results with KCacheGrind

陌路散爱 提交于 2019-11-26 04:59:49
问题 I\'m using cProfile to profile my Python program. Based upon this talk I was under the impression that KCacheGrind could parse and display the output from cProfile. However, when I go to import the file, KCacheGrind just displays an \'Unknown File Format\' error in the status bar and sits there displaying nothing. Is there something special I need to do before my profiling stats are compatible with KCacheGrind? ... if profile: import cProfile profileFileName = \'Profiles/pythonray_\' + time