[llvm-commits] CVS: llvm/tools/analyze/analyze.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Nov 10 00:56:07 PST 2002
Changes in directory llvm/tools/analyze:
analyze.cpp updated: 1.47 -> 1.48
---
Log message:
Add a timer to evaluate bytecode load time and space requirements
---
Diffs of the changes:
Index: llvm/tools/analyze/analyze.cpp
diff -u llvm/tools/analyze/analyze.cpp:1.47 llvm/tools/analyze/analyze.cpp:1.48
--- llvm/tools/analyze/analyze.cpp:1.47 Wed Nov 6 00:16:08 2002
+++ llvm/tools/analyze/analyze.cpp Sun Nov 10 00:55:02 2002
@@ -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 @@
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";
More information about the llvm-commits
mailing list