diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-11-10 06:55:02 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-11-10 06:55:02 +0000 |
| commit | 20362cd1e9f6da07150cdcdc509eddfd1685a534 (patch) | |
| tree | a26ef08749fdc8b8fef4eda456ab44244a385503 /llvm/tools/analyze/analyze.cpp | |
| parent | e79ce7d35970fff2bbea37b0a27228766adcc1c5 (diff) | |
| download | bcm5719-llvm-20362cd1e9f6da07150cdcdc509eddfd1685a534.tar.gz bcm5719-llvm-20362cd1e9f6da07150cdcdc509eddfd1685a534.zip | |
Add a timer to evaluate bytecode load time and space requirements
llvm-svn: 4679
Diffstat (limited to 'llvm/tools/analyze/analyze.cpp')
| -rw-r--r-- | llvm/tools/analyze/analyze.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/tools/analyze/analyze.cpp b/llvm/tools/analyze/analyze.cpp index 8844b7316c4..4669c66b038 100644 --- a/llvm/tools/analyze/analyze.cpp +++ b/llvm/tools/analyze/analyze.cpp @@ -16,6 +16,7 @@ #include "llvm/Assembly/Parser.h" #include "llvm/Analysis/Verifier.h" #include "llvm/Support/PassNameParser.h" +#include "Support/Timer.h" #include <algorithm> @@ -101,11 +102,14 @@ static cl::list<const PassInfo*, bool, AnalysesList(cl::desc("Analyses available:")); +static Timer BytecodeLoadTimer("Bytecode Loader"); + int main(int argc, char **argv) { cl::ParseCommandLineOptions(argc, argv, " llvm analysis printer tool\n"); Module *CurMod = 0; try { + TimeRegion RegionTimer(BytecodeLoadTimer); CurMod = ParseBytecodeFile(InputFilename); if (!CurMod && !(CurMod = ParseAssemblyFile(InputFilename))){ std::cerr << argv[0] << ": input file didn't read correctly.\n"; |

