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

Side by Side Diff: src/IceCompiler.cpp

Issue 1784243006: Subzero: Improve the use of timers. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review changes Created 4 years, 9 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/IceCfg.cpp ('k') | src/IceConverter.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/IceCompiler.cpp - Driver for bitcode translation -------===// 1 //===- subzero/src/IceCompiler.cpp - Driver for bitcode translation -------===//
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
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 TimerMarker T1(Ice::TimerStack::TT_emitAsm, &Ctx); 132 TimerMarker T1(Ice::TimerStack::TT_emitAsm, &Ctx);
133 Ctx.getObjectWriter()->setUndefinedSyms(Ctx.getConstantExternSyms()); 133 Ctx.getObjectWriter()->setUndefinedSyms(Ctx.getConstantExternSyms());
134 Ctx.getObjectWriter()->writeNonUserSections(); 134 Ctx.getObjectWriter()->writeNonUserSections();
135 } 135 }
136 } 136 }
137 137
138 if (Ctx.getFlags().getSubzeroTimingEnabled()) 138 if (Ctx.getFlags().getSubzeroTimingEnabled())
139 Ctx.dumpTimers(); 139 Ctx.dumpTimers();
140 140
141 if (Ctx.getFlags().getTimeEachFunction()) { 141 if (Ctx.getFlags().getTimeEachFunction()) {
142 constexpr bool DumpCumulative = false; 142 constexpr bool NoDumpCumulative = false;
143 Ctx.dumpTimers(GlobalContext::TSK_Funcs, DumpCumulative); 143 Ctx.dumpTimers(GlobalContext::TSK_Funcs, NoDumpCumulative);
144 } 144 }
145 constexpr bool FinalStats = true; 145 constexpr bool FinalStats = true;
146 Ctx.dumpStats("_FINAL_", FinalStats); 146 Ctx.dumpStats("_FINAL_", FinalStats);
147 } 147 }
148 148
149 } // end of namespace Ice 149 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceCfg.cpp ('k') | src/IceConverter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698