llvm-6502/runtime/libprofile
Nick Lewycky 93b68b20d4 Add support for line profiling. Very work-in-progress.
Use debug info in the IR to find the directory/file:line:col. Each time that location changes, bump a counter.

Unlike the existing profiling system, we don't try to look at argv[], and thusly don't require main() to be present in the IR. This matches GCC's technique where you specify the profiling flag when producing each .o file.

The runtime library is minimal, currently just calling printf at program shutdown time. The API is designed to make it possible to emit GCOV data later on.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129340 91177308-0d34-0410-b5e6-96231b3b80d8
2011-04-12 01:06:09 +00:00
..
BasicBlockTracing.c
CommonProfiling.c Implementation of path profiling. 2011-01-29 01:09:53 +00:00
EdgeProfiling.c
libprofile.exports Add support for line profiling. Very work-in-progress. 2011-04-12 01:06:09 +00:00
LineProfiling.c Add support for line profiling. Very work-in-progress. 2011-04-12 01:06:09 +00:00
Makefile Rename 'libprofile/exported_symbols.lst' to 'libprofile/libprofile.exports'. 2010-09-03 15:42:45 +00:00
OptimalEdgeProfiling.c OptimalEdgeProfiling: Creation of profiles. 2009-09-01 19:03:44 +00:00
PathProfiling.c Implementation of path profiling. 2011-01-29 01:09:53 +00:00
Profiling.h Implementation of path profiling. 2011-01-29 01:09:53 +00:00