User Tools

Site Tools


admin:lcov

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
admin:lcov [2013/06/26 22:46] jwarrioradmin:lcov [2013/10/17 10:41] (current) jwarrior
Line 1: Line 1:
 +====== lcov ======
  
 +  * gcov must be on path
 +  * gcc produces .gcda files.
 +  * geninfo's first pass reads them and creates .gcov files.
 +  * geninfo's second pass calls gcov with a .gcov file as input and produces .gcno files
 +  * gcov files have names like  #home#dmacq#code#instantiations#dino2-devel#vast-vm#exe#source#headless#os#unix#main.c.gcov on both Linux and Windows. 
 +  * If we execute this code at line 990 in geninfo.pl 
 +<code> ($instr, $graph) = adjust_graph_filenames($base_dir, $instr, $graph);</code>
 + then we get this error: geninfo.pl: WARNING: cannot find an entry for C~#code#instantiations#dino2-devel
 +#vast-vm#vm#source#os#windows#estty.c.gcov in .gcno file, skipping file!
 +  * $instr and $graph are hashes that look the same before and after the code executes
 +  * see the #dq's in geninfo.pl.
 +  * this works for perl formatting if you follow http://micksmix.wordpress.com/2009/09/24/format-your-perl-scripts-using-perltidy-and-notepad/)
 +<code> perl -x -S perltidy -b "$(FULL_CURRENT_PATH)" -ole=win npp_open $(FULL_CURRENT_PATH) </code>
 +   * tidy-pm must be in per64\lib\perl
 +   * if perl will not read command line arguments, import the following into regedit: <code> Windows Registry Editor Version 5.00
 +
 +[HKEY_CLASSES_ROOT\pl_auto_file\shell\open\command]
 +@="\"C:\\Perl64\\bin\\perl.exe\" \"%1\" %*"</code>