Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Rename LineProfiling to GCOVProfiling to more accurately represent what it | Nick Lewycky | 2011-04-16 | 1 | -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 Kramer | 2011-04-13 | 1 | -1/+1 |
| | | | | llvm-svn: 129467 | ||||
* | Use %ull here. | Nick Lewycky | 2011-04-13 | 1 | -1/+2 |
| | | | | llvm-svn: 129423 | ||||
* | Print our uint64_t with the more portable (C99 and C++0x) %PRIu64 format | Nick Lewycky | 2011-04-12 | 1 | -1/+3 |
| | | | | | | specifier. llvm-svn: 129384 | ||||
* | The counters are unsigned. | Nick Lewycky | 2011-04-12 | 1 | -1/+1 |
| | | | | llvm-svn: 129380 | ||||
* | Add support for line profiling. Very work-in-progress. | Nick Lewycky | 2011-04-12 | 1 | -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 |