File tree 2 files changed +10
-7
lines changed
2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 27
27
28
28
# Reset this number to 0 on major V8 upgrades.
29
29
# Increment by one for each non-official patch applied to deps/v8.
30
- 'v8_embedder_string' : '-node.21 ' ,
30
+ 'v8_embedder_string' : '-node.22 ' ,
31
31
32
32
# Enable disassembler for `--print-code` v8 options
33
33
'v8_enable_disassembler' : 1 ,
Original file line number Diff line number Diff line change @@ -162,13 +162,16 @@ void ProfilerEventsProcessor::Run() {
162
162
163
163
if (nextSampleTime > now) {
164
164
#if V8_OS_WIN
165
- // Do not use Sleep on Windows as it is very imprecise.
166
- // Could be up to 16ms jitter, which is unacceptable for the purpose.
167
- while ( base::TimeTicks::HighResolutionNow () < nextSampleTime) {
168
- }
169
- # else
170
- base::OS::Sleep (nextSampleTime - now);
165
+ if (nextSampleTime - now < base::TimeDelta::FromMilliseconds ( 100 )) {
166
+ // Do not use Sleep on Windows as it is very imprecise, with up to 16ms
167
+ // jitter, which is unacceptable for short profile intervals.
168
+ while ( base::TimeTicks::HighResolutionNow () < nextSampleTime) {
169
+ }
170
+ } else // NOLINT
171
171
#endif
172
+ {
173
+ base::OS::Sleep (nextSampleTime - now);
174
+ }
172
175
}
173
176
174
177
// Schedule next sample. sampler_ is NULL in tests.
You can’t perform that action at this time.
0 commit comments