summaryrefslogtreecommitdiffstats
path: root/runtime/base
diff options
context:
space:
mode:
authorAnwar Ghuloum <anwarg@google.com>2013-08-12 09:28:42 -0700
committerAnwar Ghuloum <anwarg@google.com>2013-08-12 09:28:42 -0700
commit4654322261c8e4d799acdea60a7e227f33c5c2db (patch)
tree79f0e43805127345cf7c34dffed85a8487016b4d /runtime/base
parent6fb34134fdb4eb040d613248cf9b752f2fa845b5 (diff)
downloadart-4654322261c8e4d799acdea60a7e227f33c5c2db.zip
art-4654322261c8e4d799acdea60a7e227f33c5c2db.tar.gz
art-4654322261c8e4d799acdea60a7e227f33c5c2db.tar.bz2
Timing logger clean-up
Catching some missing regions in GC, renamed unpause, relacing start/endsplits with scopedsplit. More to come in further CLs. Change-Id: I809e0c3af8f8432b22c6205aade5d0dd05ac1b38
Diffstat (limited to 'runtime/base')
-rw-r--r--runtime/base/timing_logger.cc4
-rw-r--r--runtime/base/timing_logger.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/runtime/base/timing_logger.cc b/runtime/base/timing_logger.cc
index 78a6883..1dcad0e 100644
--- a/runtime/base/timing_logger.cc
+++ b/runtime/base/timing_logger.cc
@@ -243,7 +243,7 @@ TimingLogger::ScopedSplit::~ScopedSplit() {
timing_logger_->current_split_ = enclosing_split_;
if (enclosing_split_ != NULL) {
- enclosing_split_->UnPause();
+ enclosing_split_->Resume();
}
}
@@ -281,7 +281,7 @@ void TimingLogger::ScopedSplit::Pause() {
}
-void TimingLogger::ScopedSplit::UnPause() {
+void TimingLogger::ScopedSplit::Resume() {
uint64_t current_time = NanoTime();
start_ns_ = current_time;
diff --git a/runtime/base/timing_logger.h b/runtime/base/timing_logger.h
index 8649a96..777d3f0 100644
--- a/runtime/base/timing_logger.h
+++ b/runtime/base/timing_logger.h
@@ -107,8 +107,8 @@ class TimingLogger {
// Pauses timing of the split, usually due to nesting of another split.
void Pause();
- // Unpauses timing of the split, usually because a nested split has ended.
- void UnPause();
+ // Resumes timing of the split, usually because a nested split has ended.
+ void Resume();
// Used by new split to swap splits in place in a ScopedSplit instance.
void TailInsertSplit(const char* label);