summaryrefslogtreecommitdiffstats
path: root/llvm/runtime/libprofile/LineProfiling.c
Commit message (Collapse)AuthorAgeFilesLines
* Rename LineProfiling to GCOVProfiling to more accurately represent what itNick Lewycky2011-04-161-40/+0
| | | | | | | does. Also mostly implement it. Still a work-in-progress, but generates legal output on crafted test cases. llvm-svn: 129630
* Fix format string warning.Benjamin Kramer2011-04-131-1/+1
| | | | llvm-svn: 129467
* Use %ull here.Nick Lewycky2011-04-131-1/+2
| | | | llvm-svn: 129423
* Print our uint64_t with the more portable (C99 and C++0x) %PRIu64 formatNick Lewycky2011-04-121-1/+3
| | | | | | specifier. llvm-svn: 129384
* The counters are unsigned.Nick Lewycky2011-04-121-1/+1
| | | | llvm-svn: 129380
* Add support for line profiling. Very work-in-progress.Nick Lewycky2011-04-121-0/+37
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. llvm-svn: 129340
OpenPOWER on IntegriCloud