|
From: Mahmood N. <nt_...@ya...> - 2013-04-18 17:15:59
|
Dear all, I want to use kcachegrind and callgrind to profile my program and find the hotspot. The problem is, I use --tool=callgrind but there is no calgrind output file. Here is the detail: My program at the top level uses a tcl script. What I run is [mahmood@mpc /home/mahmood/trunk]$ scripts/run_job -job test -valgrind benchmark the -valgrind option will set valgrind --tool=callgrind --tool=memcheck -v --trace-children=yes in the command line. The output of my program (i mean the working directory) will go to /home/mahmood/test (according to -job option). As I run the program, I see valgrind's output (so I am sure the valgrind is running) however there is no callgrind.out file How can I fix that? Regards, Mahmood |
|
From: Josef W. <Jos...@gm...> - 2013-04-18 18:23:04
|
Am 18.04.2013 19:15, schrieb Mahmood Naderan: > the -valgrind option will set > valgrind --tool=callgrind --tool=memcheck -v --trace-children=yes > in the command line. The 2nd --tool option overrides the first, as you can not run multiple tools at once. Josef |
|
From: Mahmood N. <nt_...@ya...> - 2013-04-18 18:35:10
|
>The 2nd --tool option overrides the first, as you can not run multiple >tools at once. Thanks. You are right. Regards, Mahmood ________________________________ From: Josef Weidendorfer <Jos...@gm...> To: val...@li... Sent: Thursday, April 18, 2013 10:52 PM Subject: Re: [Valgrind-users] there is no callgrind.out Am 18.04.2013 19:15, schrieb Mahmood Naderan: > the -valgrind option will set > valgrind --tool=callgrind --tool=memcheck -v --trace-children=yes > in the command line. The 2nd --tool option overrides the first, as you can not run multiple tools at once. Josef ------------------------------------------------------------------------------ Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis & visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter _______________________________________________ Valgrind-users mailing list Val...@li... https://lists.sourceforge.net/lists/listinfo/valgrind-users |
|
From: Paul F. <pa...@fr...> - 2013-04-18 18:59:38
|
On 18 Apr 2013, at 19:15, Mahmood Naderan wrote: > Dear all, > I want to use kcachegrind and callgrind to profile my program and find the hotspot. The problem is, I use --tool=callgrind but there is no calgrind output file. > > Here is the detail: > My program at the top level uses a tcl script. What I run is > [mahmood@mpc /home/mahmood/trunk]$ scripts/run_job -job test -valgrind benchmark > > the -valgrind option will set > valgrind --tool=callgrind --tool=memcheck -v --trace-children=yes > in the command line. > You don't want more than one --tool option, and I guess that the last one overrides any earlier ones. Just use --tool=callgrind. Paul |