Hello,

I am having difficulty getting cg_annotate to perform line-by-line annotation.  

I run cg_annotate as follows:

cg_annotate --auto=yes --include=PATH_TO_MY_SOURCE_TREE cachegrind.out.PID 
PATH_OF_SOURCE_FILE_OF_INTEREST.c

The resulting annotation says that:

No information has been collected for PATH_OF_SOURCE_FILE_OF_INTEREST.c


When I look at the cachegrind.out file, there doesn't appear to be line number 
information.  I can't see how to tell valgrind I want to run cachegrind with 
line number information.  From the excerpt below, you can see that cachegrind 
is able to fund function names, but not source file names:

> --------------------------------------------------------------------------------
>             Ir        I1mr   ILmr             Dr        D1mr       DLmr       
>      Dw       D1mw       DLmw  file:function
> --------------------------------------------------------------------------------
> 37,870,013,907   2,054,231  3,689 11,250,913,389   3,432,271     71,007       
>       0          0          0  ???:exp$fenv_access_off
> 25,590,706,832  14,079,837  2,919  8,255,066,720     532,771     20,090 
> 2,063,766,680          0          0  ???:log$fenv_access_off
> 19,358,788,976       6,935  6,570  9,578,313,834  24,920,457 21,465,693 
> 3,963,647,063          0          0  ???:compute_N_leached
> 17,852,797,868   2,123,727 12,411  4,229,951,784   2,261,444     70,815 
> 2,463,471,657    141,180      6,214  ???:pow$fenv_access_off

I have compile my program with debug symbols, so I'm not sure what else to do 
at this point.

Any suggestions would be appreciated.

Thanks in advance.

Brian

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to