| Index: src/profile-generator-inl.h
|
| ===================================================================
|
| --- src/profile-generator-inl.h (revision 6904)
|
| +++ src/profile-generator-inl.h (working copy)
|
| @@ -122,7 +122,7 @@
|
| }
|
|
|
|
|
| -inline uint64_t HeapEntry::id() {
|
| +uint64_t HeapEntry::id() {
|
| union {
|
| Id stored_id;
|
| uint64_t returned_id;
|
| @@ -146,6 +146,18 @@
|
| }
|
| }
|
|
|
| +
|
| +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
|
|
|