Index: src/profiler/cpu-profiler.cc |
diff --git a/src/profiler/cpu-profiler.cc b/src/profiler/cpu-profiler.cc |
index b6c7945797bc702cb647c5de58195f90ff6ae967..5252b9363a718380c36695224ca94f8dbce71da7 100644 |
--- a/src/profiler/cpu-profiler.cc |
+++ b/src/profiler/cpu-profiler.cc |
@@ -114,7 +114,9 @@ ProfilerEventsProcessor::SampleProcessingResult |
if (record->order != last_processed_code_event_id_) { |
return FoundSampleForNextCodeEvent; |
} |
- generator_->RecordTickSample(record->sample); |
+ if (record->sample.pc) { |
titzer
2016/02/19 09:28:37
Will this tick just be discarded? Is there a bucke
alph
2016/02/19 16:24:29
It is just discarded, so effectively it adds to al
titzer
2016/02/19 16:36:33
As long as the missing samples go somewhere, so as
alph
2016/02/19 17:54:22
Agree.
|
+ generator_->RecordTickSample(record->sample); |
+ } |
ticks_buffer_.Remove(); |
return OneSampleProcessed; |
} |