Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1173)

Side by Side Diff: src/IceGlobalContext.h

Issue 640713003: Subzero: Improve the output with the --timing-focus=xxx option. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: 80-col Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/IceCfgNode.cpp ('k') | src/IceGlobalContext.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===- subzero/src/IceGlobalContext.h - Global context defs -----*- C++ -*-===// 1 //===- subzero/src/IceGlobalContext.h - Global context defs -----*- C++ -*-===//
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 // This file declares aspects of the compilation that persist across 10 // This file declares aspects of the compilation that persist across
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 enum TimerStackKind { 157 enum TimerStackKind {
158 TSK_Default = 0, 158 TSK_Default = 0,
159 TSK_Funcs, 159 TSK_Funcs,
160 TSK_Num 160 TSK_Num
161 }; 161 };
162 162
163 TimerIdT getTimerID(TimerStackIdT StackID, const IceString &Name); 163 TimerIdT getTimerID(TimerStackIdT StackID, const IceString &Name);
164 TimerStackIdT newTimerStackID(const IceString &Name); 164 TimerStackIdT newTimerStackID(const IceString &Name);
165 void pushTimer(TimerIdT ID, TimerStackIdT StackID = TSK_Default); 165 void pushTimer(TimerIdT ID, TimerStackIdT StackID = TSK_Default);
166 void popTimer(TimerIdT ID, TimerStackIdT StackID = TSK_Default); 166 void popTimer(TimerIdT ID, TimerStackIdT StackID = TSK_Default);
167 void resetTimer(TimerStackIdT StackID);
168 void setTimerName(TimerStackIdT StackID, const IceString &NewName);
167 void dumpTimers(TimerStackIdT StackID = TSK_Default, 169 void dumpTimers(TimerStackIdT StackID = TSK_Default,
168 bool DumpCumulative = true); 170 bool DumpCumulative = true);
169 171
170 private: 172 private:
171 Ostream *StrDump; // Stream for dumping / diagnostics 173 Ostream *StrDump; // Stream for dumping / diagnostics
172 Ostream *StrEmit; // Stream for code emission 174 Ostream *StrEmit; // Stream for code emission
173 175
174 llvm::BumpPtrAllocator Allocator; 176 llvm::BumpPtrAllocator Allocator;
175 VerboseMask VMask; 177 VerboseMask VMask;
176 std::unique_ptr<class ConstantPool> ConstPool; 178 std::unique_ptr<class ConstantPool> ConstPool;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 216
215 private: 217 private:
216 TimerIdT ID; 218 TimerIdT ID;
217 GlobalContext *const Ctx; 219 GlobalContext *const Ctx;
218 const bool Active; 220 const bool Active;
219 }; 221 };
220 222
221 } // end of namespace Ice 223 } // end of namespace Ice
222 224
223 #endif // SUBZERO_SRC_ICEGLOBALCONTEXT_H 225 #endif // SUBZERO_SRC_ICEGLOBALCONTEXT_H
OLDNEW
« no previous file with comments | « src/IceCfgNode.cpp ('k') | src/IceGlobalContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698