1 /*===-- Profiling.h - Profiling support library support routines --*- C -*-===*\
3 |* The LLVM Compiler Infrastructure
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.
8 |*===----------------------------------------------------------------------===*|
10 |* This file defines functions shared by the various different profiling
13 \*===----------------------------------------------------------------------===*/
18 /* save_arguments - Save argc and argv as passed into the program for the file
21 int save_arguments(int argc, const char **argv);
24 Arguments = 1, /* The command line argument block */
25 Function = 2, /* Function profiling information */
26 Block = 3, /* Block profiling information */
27 Edge = 4, /* Edge profiling information */
28 Path = 5 /* Path profiling information */
31 void write_profiling_data(enum ProfilingType PT, unsigned *Start,
32 unsigned NumElements);