DescriptionThis 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 #
MessagesTotal messages: 1
|