8f823aadaba0bd12cee80c35b5fba563286776e8
[oota-llvm.git] / tools / llvm-prof / ProfileInfo.h
1 //===- ProfileInfo.h - Represents profile information -----------*- 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 // The ProfileInfo class is used to represent profiling information read in from
11 // the dump file.
12 //
13 //===----------------------------------------------------------------------===//
14
15 #ifndef PROFILEINFO_H
16 #define PROFILEINFO_H
17
18 #include <vector>
19 #include <string>
20
21 class ProfileInfo {
22   std::vector<std::string> CommandLines;
23   std::vector<unsigned>    FunctionCounts;
24   std::vector<unsigned>    BlockCounts;
25 public:
26   // ProfileInfo ctor - Read the specified profiling data file, exiting the
27   // program if the file is invalid or broken.
28   ProfileInfo(const char *ToolName, const std::string &Filename);
29 };
30
31 #endif