Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 1 | /*===-- Profiling.h - Profiling support library support routines --*- C -*-===*\ |
| 2 | |* |
| 3 | |* The LLVM Compiler Infrastructure |
| 4 | |* |
Chris Lattner | 234d529 | 2007-12-29 22:59:10 +0000 | [diff] [blame] | 5 | |* This file is distributed under the University of Illinois Open Source |
| 6 | |* License. See LICENSE.TXT for details. |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 7 | |* |
| 8 | |*===----------------------------------------------------------------------===*| |
| 9 | |* |
| 10 | |* This file defines functions shared by the various different profiling |
| 11 | |* implementations. |
| 12 | |* |
| 13 | \*===----------------------------------------------------------------------===*/ |
| 14 | |
| 15 | #ifndef PROFILING_H |
| 16 | #define PROFILING_H |
| 17 | |
| 18 | #include "llvm/Analysis/ProfileInfoTypes.h" /* for enum ProfilingType */ |
| 19 | |
| 20 | /* save_arguments - Save argc and argv as passed into the program for the file |
| 21 | * we output. |
| 22 | */ |
| 23 | int save_arguments(int argc, const char **argv); |
| 24 | |
| 25 | /* write_profiling_data - Write out a typed packet of profiling data to the |
| 26 | * current output file. |
| 27 | */ |
| 28 | void write_profiling_data(enum ProfilingType PT, unsigned *Start, |
| 29 | unsigned NumElements); |
| 30 | |
| 31 | #endif |