Chris Lattner | a9a3028 | 2003-10-28 18:56:51 +0000 | [diff] [blame] | 1 | /*===-- Profiling.h - Profiling support library support routines --*- C -*-===*\ |
| 2 | |* |
| 3 | |* The LLVM Compiler Infrastructure |
| 4 | |* |
| 5 | |* This file was developed by the LLVM research group and is distributed under |
| 6 | |* the University of Illinois Open Source License. See LICENSE.TXT for details. |
| 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 | |
Brian Gaeke | ada3c4f | 2004-05-04 16:51:48 +0000 | [diff] [blame] | 18 | #include "llvm/Analysis/ProfileInfoTypes.h" /* for enum ProfilingType */ |
| 19 | |
Chris Lattner | a9a3028 | 2003-10-28 18:56:51 +0000 | [diff] [blame] | 20 | /* save_arguments - Save argc and argv as passed into the program for the file |
| 21 | * we output. |
| 22 | */ |
Chris Lattner | affce4f | 2004-02-10 17:36:25 +0000 | [diff] [blame] | 23 | int save_arguments(int argc, const char **argv); |
Chris Lattner | a9a3028 | 2003-10-28 18:56:51 +0000 | [diff] [blame] | 24 | |
Brian Gaeke | ada3c4f | 2004-05-04 16:51:48 +0000 | [diff] [blame] | 25 | /* write_profiling_data - Write out a typed packet of profiling data to the |
| 26 | * current output file. |
| 27 | */ |
Chris Lattner | a9a3028 | 2003-10-28 18:56:51 +0000 | [diff] [blame] | 28 | void write_profiling_data(enum ProfilingType PT, unsigned *Start, |
| 29 | unsigned NumElements); |
| 30 | |
| 31 | #endif |