| Valgrind 3.3 - Advanced Debugging and Profiling for GNU/Linux applications by J. Seward, N. Nethercote, J. Weidendorfer and the Valgrind Development Team Paperback (6"x9"), 164 pages ISBN 0954612051 RRP £12.95 ($19.95) |
6.3.1 Warnings
There are a couple of situations in which cg_annotate issues warnings.
- If a source file is more recent than the ‘cachegrind.out.<pid>’ file. This is because the information in ‘cachegrind.out.<pid>’ is only recorded with line numbers, so if the line numbers change at all in the source (e.g. lines added, deleted, swapped), any annotations will be incorrect.
- If information is recorded about line numbers past the end of a file. This can be caused by the above problem, i.e. shortening the source file while using an old ‘cachegrind.out.<pid>’ file. If this happens, the figures for the bogus lines are printed anyway (clearly marked as bogus) in case they are important.
| ISBN 0954612051 | Valgrind 3.3 - Advanced Debugging and Profiling for GNU/Linux applications | See the print edition |