| Index: src/profile-generator-inl.h
|
| diff --git a/src/profile-generator-inl.h b/src/profile-generator-inl.h
|
| index 8b5c1e21cb6a69c679cad070ab84b09ed5476357..3df6af06f617ace0642f904c99445978239e1fc2 100644
|
| --- a/src/profile-generator-inl.h
|
| +++ b/src/profile-generator-inl.h
|
| @@ -122,7 +122,7 @@ CodeEntry* ProfileGenerator::EntryForVMState(StateTag tag) {
|
| }
|
|
|
|
|
| -inline uint64_t HeapEntry::id() {
|
| +uint64_t HeapEntry::id() {
|
| union {
|
| Id stored_id;
|
| uint64_t returned_id;
|
| @@ -146,6 +146,18 @@ void HeapEntriesMap::UpdateEntries(Visitor* visitor) {
|
| }
|
| }
|
|
|
| +
|
| +bool HeapSnapshotGenerator::ReportProgress(bool force) {
|
| + const int kProgressReportGranularity = 10000;
|
| + if (control_ != NULL
|
| + && (force || progress_counter_ % kProgressReportGranularity == 0)) {
|
| + return
|
| + control_->ReportProgressValue(progress_counter_, progress_total_) ==
|
| + v8::ActivityControl::kContinue;
|
| + }
|
| + return true;
|
| +}
|
| +
|
| } } // namespace v8::internal
|
|
|
| #endif // ENABLE_LOGGING_AND_PROFILING
|
|
|