| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 045868d commit a1aff28
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,7 +11,7 @@ | |||
| 11 | 11 | #define V8_MAJOR_VERSION 6 | |
| 12 | 12 | #define V8_MINOR_VERSION 2 | |
| 13 | 13 | #define V8_BUILD_NUMBER 414 | |
| 14 | - #define V8_PATCH_LEVEL 75 | ||
| 14 | + #define V8_PATCH_LEVEL 76 | ||
| 15 | 15 | ||
| 16 | 16 | // Use 1 for candidates and 0 otherwise. | |
| 17 | 17 | // (Boolean macro values are not supported by all preprocessors.) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -326,8 +326,11 @@ void CpuProfiler::StartProcessorIfNotStarted() { | |||
| 326 | 326 | // Disable logging when using the new implementation. | |
| 327 | 327 | saved_is_logging_ = logger->is_logging_; | |
| 328 | 328 | logger->is_logging_ = false; | |
| 329 | + | ||
| 330 | + bool codemap_needs_initialization = false; | ||
| 329 | 331 | if (!generator_) { | |
| 330 | 332 | generator_.reset(new ProfileGenerator(profiles_.get())); | |
| 333 | + codemap_needs_initialization = true; | ||
| 331 | 334 | CreateEntriesForRuntimeCallStats(); | |
| 332 | 335 | } | |
| 333 | 336 | processor_.reset(new ProfilerEventsProcessor(isolate_, generator_.get(), | |
@@ -341,12 +344,14 @@ void CpuProfiler::StartProcessorIfNotStarted() { | |||
| 341 | 344 | isolate_->set_is_profiling(true); | |
| 342 | 345 | // Enumerate stuff we already have in the heap. | |
| 343 | 346 | DCHECK(isolate_->heap()->HasBeenSetUp()); | |
| 344 | - if (!FLAG_prof_browser_mode) { | ||
| 345 | - logger->LogCodeObjects(); | ||
| 347 | + if (codemap_needs_initialization) { | ||
| 348 | + if (!FLAG_prof_browser_mode) { | ||
| 349 | + logger->LogCodeObjects(); | ||
| 350 | + } | ||
| 351 | + logger->LogCompiledFunctions(); | ||
| 352 | + logger->LogAccessorCallbacks(); | ||
| 353 | + LogBuiltins(); | ||
| 346 | 354 | } | |
| 347 | - logger->LogCompiledFunctions(); | ||
| 348 | - logger->LogAccessorCallbacks(); | ||
| 349 | - LogBuiltins(); | ||
| 350 | 355 | // Enable stack sampling. | |
| 351 | 356 | processor_->AddCurrentStack(isolate_); | |
| 352 | 357 | processor_->StartSynchronously(); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments