modocache abandoned this revision.
modocache added inline comments.
Comment at: include/clang/Lex/PreprocessorOptions.h:165
public:
- PreprocessorOptions() : UsePredefines(true), DetailedRecord(false),
+ PreprocessorOptions() : PPTimer("preprocessor", "Preprocessing"),
+
avt77 added inline comments.
Comment at: include/clang/Lex/PreprocessorOptions.h:165
public:
- PreprocessorOptions() : UsePredefines(true), DetailedRecord(false),
+ PreprocessorOptions() : PPTimer("preprocessor", "Preprocessing"),
+ UsePredefines(true)
vsk added inline comments.
Comment at: lib/Lex/Preprocessor.cpp:746
void Preprocessor::Lex(Token &Result) {
+ llvm::TimeRegion(PPOpts->getTimer());
+
MatzeB wrote:
> modocache wrote:
> > erik.pilkington wrote:
> > > Doesn't this just start a timer and immediate
MatzeB added inline comments.
Comment at: lib/Lex/Preprocessor.cpp:746
void Preprocessor::Lex(Token &Result) {
+ llvm::TimeRegion(PPOpts->getTimer());
+
modocache wrote:
> erik.pilkington wrote:
> > Doesn't this just start a timer and immediately end the timer?
modocache added inline comments.
Comment at: include/clang/Lex/PreprocessorOptions.h:165
public:
- PreprocessorOptions() : UsePredefines(true), DetailedRecord(false),
+ PreprocessorOptions() : PPTimer("preprocessor", "Preprocessing"),
+ UsePredefines(t
eduardo-elizondo added inline comments.
Comment at: include/clang/Lex/PreprocessorOptions.h:165
public:
- PreprocessorOptions() : UsePredefines(true), DetailedRecord(false),
+ PreprocessorOptions() : PPTimer("preprocessor", "Preprocessing"),
+ UsePrede
modocache planned changes to this revision.
modocache added inline comments.
Comment at: lib/Lex/Preprocessor.cpp:746
void Preprocessor::Lex(Token &Result) {
+ llvm::TimeRegion(PPOpts->getTimer());
+
erik.pilkington wrote:
> Doesn't this just start a timer and
erik.pilkington added a comment.
This looks really usefull, thanks for working on this!
Comment at: lib/Lex/Preprocessor.cpp:746
void Preprocessor::Lex(Token &Result) {
+ llvm::TimeRegion(PPOpts->getTimer());
+
Doesn't this just start a timer and immediately
vsk accepted this revision.
vsk added a comment.
This revision is now accepted and ready to land.
LGTM.
https://reviews.llvm.org/D36492
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit
modocache added a comment.
Friendly ping! I think this is ready to be reviewed. It adds an additional row,
`Preprocessing`, to the `Miscellaneous Ungrouped Timers` section of the `clang
-ftime-report` output:
===-===
modocache added subscribers: vsk, mzolotukhin.
modocache added a comment.
Oops, sorry, didn't mean to remove the subscribers. `arc diff --verbatim`
strikes again.
https://reviews.llvm.org/D36492
___
cfe-commits mailing list
cfe-commits@lists.llvm.o
modocache updated this revision to Diff 95.
modocache retitled this revision from "[RFC][time-report] Add preprocessor
timer" to "[time-report] Add preprocessor timer".
modocache edited the summary of this revision.
modocache removed subscribers: vsk, mzolotukhin.
modocache added a comment.
A
12 matches
Mail list logo