Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3400)

Issue 1735041: Add helper RAII-style SwitchTimeRegion class (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 10 months ago by Reid Kleckner
Modified:
13 years, 9 months ago
Reviewers:
CC:
llvm-commits_cs.uiuc.edu
Base URL:
http://llvm.org/svn/llvm-project/llvm/trunk/
Visibility:
Public.

Description

This class pauses one timer while another runs, which is useful when you are trying to separate time spent in two different sections of code that call back and forth between each other. Used like this: NextToken { SwitchTimeRegion Region(ParsingTimer, LexingTimer); ... lex lex lex } This change supports some profiling in clang: http://codereview.appspot.com/1683046/show

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -0 lines) Patch
M include/llvm/Support/Timer.h View 1 chunk +21 lines, -0 lines 0 comments Download

Messages

Total messages: 1
Reid Kleckner
13 years, 10 months ago (2010-06-19 00:13:21 UTC) #1
Please take a look.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b