| OLD | NEW |
| 1 //===- subzero/src/IceTimerTree.cpp - Pass timer defs ---------------------===// | 1 //===- subzero/src/IceTimerTree.cpp - Pass timer defs ---------------------===// |
| 2 // | 2 // |
| 3 // The Subzero Code Generator | 3 // The Subzero Code Generator |
| 4 // | 4 // |
| 5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
| 6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
| 7 // | 7 // |
| 8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
| 9 /// | 9 /// |
| 10 /// \file | 10 /// \file |
| 11 /// This file defines the TimerTree class, which tracks flat and cumulative | 11 /// \brief Defines the TimerTree class, which tracks flat and cumulative |
| 12 /// execution time collection of call chains. | 12 /// execution time collection of call chains. |
| 13 /// | 13 /// |
| 14 //===----------------------------------------------------------------------===// | 14 //===----------------------------------------------------------------------===// |
| 15 | 15 |
| 16 #include "IceTimerTree.h" | 16 #include "IceTimerTree.h" |
| 17 | 17 |
| 18 #include "IceDefs.h" | 18 #include "IceDefs.h" |
| 19 | 19 |
| 20 #pragma clang diagnostic push | 20 #pragma clang diagnostic push |
| 21 #pragma clang diagnostic ignored "-Wunused-parameter" | 21 #pragma clang diagnostic ignored "-Wunused-parameter" |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 dumpHelper(Str, FlatMap, TotalTime); | 301 dumpHelper(Str, FlatMap, TotalTime); |
| 302 Str << "Number of timer updates: " << StateChangeCount << "\n"; | 302 Str << "Number of timer updates: " << StateChangeCount << "\n"; |
| 303 } | 303 } |
| 304 | 304 |
| 305 double TimerStack::timestamp() { | 305 double TimerStack::timestamp() { |
| 306 // TODO: Implement in terms of std::chrono for C++11. | 306 // TODO: Implement in terms of std::chrono for C++11. |
| 307 return llvm::TimeRecord::getCurrentTime(false).getWallTime(); | 307 return llvm::TimeRecord::getCurrentTime(false).getWallTime(); |
| 308 } | 308 } |
| 309 | 309 |
| 310 } // end of namespace Ice | 310 } // end of namespace Ice |
| OLD | NEW |