Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(541)

Side by Side Diff: src/heap/gc-tracer.h

Issue 1148633005: Uncommit and shrink semi-spaces only on low allocation rate. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/heap/gc-idle-time-handler.cc ('k') | src/heap/gc-tracer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_HEAP_GC_TRACER_H_ 5 #ifndef V8_HEAP_GC_TRACER_H_
6 #define V8_HEAP_GC_TRACER_H_ 6 #define V8_HEAP_GC_TRACER_H_
7 7
8 #include "src/base/platform/platform.h" 8 #include "src/base/platform/platform.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 intptr_t FinalIncrementalMarkCompactSpeedInBytesPerMillisecond() const; 382 intptr_t FinalIncrementalMarkCompactSpeedInBytesPerMillisecond() const;
383 383
384 // Allocation throughput in the new space in bytes/millisecond. 384 // Allocation throughput in the new space in bytes/millisecond.
385 // Returns 0 if no allocation events have been recorded. 385 // Returns 0 if no allocation events have been recorded.
386 size_t NewSpaceAllocationThroughputInBytesPerMillisecond() const; 386 size_t NewSpaceAllocationThroughputInBytesPerMillisecond() const;
387 387
388 // Bytes allocated in new space in the specified time. 388 // Bytes allocated in new space in the specified time.
389 // Returns 0 if no allocation events have been recorded. 389 // Returns 0 if no allocation events have been recorded.
390 size_t NewSpaceAllocatedBytesInLast(double time_ms) const; 390 size_t NewSpaceAllocatedBytesInLast(double time_ms) const;
391 391
392 // Allocation throughput in the new space in bytes/milliseconds in
393 // the last five seconds.
394 // Returns 0 if no allocation events have been recorded.
395 size_t CurrentNewSpaceAllocationThroughputInBytesPerMillisecond() const;
396
392 // Computes the context disposal rate in milliseconds. It takes the time 397 // Computes the context disposal rate in milliseconds. It takes the time
393 // frame of the first recorded context disposal to the current time and 398 // frame of the first recorded context disposal to the current time and
394 // divides it by the number of recorded events. 399 // divides it by the number of recorded events.
395 // Returns 0 if no events have been recorded. 400 // Returns 0 if no events have been recorded.
396 double ContextDisposalRateInMilliseconds() const; 401 double ContextDisposalRateInMilliseconds() const;
397 402
398 // Computes the average survival ratio based on the last recorded survival 403 // Computes the average survival ratio based on the last recorded survival
399 // events. 404 // events.
400 // Returns 0 if no events have been recorded. 405 // Returns 0 if no events have been recorded.
401 double AverageSurvivalRatio() const; 406 double AverageSurvivalRatio() const;
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 507
503 // Counts how many tracers were started without stopping. 508 // Counts how many tracers were started without stopping.
504 int start_counter_; 509 int start_counter_;
505 510
506 DISALLOW_COPY_AND_ASSIGN(GCTracer); 511 DISALLOW_COPY_AND_ASSIGN(GCTracer);
507 }; 512 };
508 } 513 }
509 } // namespace v8::internal 514 } // namespace v8::internal
510 515
511 #endif // V8_HEAP_GC_TRACER_H_ 516 #endif // V8_HEAP_GC_TRACER_H_
OLDNEW
« no previous file with comments | « src/heap/gc-idle-time-handler.cc ('k') | src/heap/gc-tracer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698