summaryrefslogtreecommitdiffstats
path: root/base/tracked_objects.h
diff options
context:
space:
mode:
authordsh@google.com <dsh@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-27 20:43:33 +0000
committerdsh@google.com <dsh@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-27 20:43:33 +0000
commite1acf6f902e50222baf99bfb492ecc38a1604975 (patch)
tree503d45705b14be7e2f1ed86c71d6064abbf90fbe /base/tracked_objects.h
parenta2f5993e1ce940e8a8eec900abaeed02e2eee09b (diff)
downloadchromium_src-e1acf6f902e50222baf99bfb492ecc38a1604975.zip
chromium_src-e1acf6f902e50222baf99bfb492ecc38a1604975.tar.gz
chromium_src-e1acf6f902e50222baf99bfb492ecc38a1604975.tar.bz2
Move Time, TimeDelta and TimeTicks into namespace base.
Review URL: http://codereview.chromium.org/7995 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4022 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/tracked_objects.h')
-rw-r--r--base/tracked_objects.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/base/tracked_objects.h b/base/tracked_objects.h
index 2e6f046..638ea24 100644
--- a/base/tracked_objects.h
+++ b/base/tracked_objects.h
@@ -80,11 +80,11 @@ class DeathData {
// a corrosponding death.
explicit DeathData(int count) : count_(count), square_duration_(0) {}
- void RecordDeath(const TimeDelta& duration);
+ void RecordDeath(const base::TimeDelta& duration);
// Metrics accessors.
int count() const { return count_; }
- TimeDelta life_duration() const { return life_duration_; }
+ base::TimeDelta life_duration() const { return life_duration_; }
int64 square_duration() const { return square_duration_; }
int AverageMsDuration() const;
double StandardDeviation() const;
@@ -99,7 +99,7 @@ class DeathData {
private:
int count_; // Number of destructions.
- TimeDelta life_duration_; // Sum of all lifetime durations.
+ base::TimeDelta life_duration_; // Sum of all lifetime durations.
int64 square_duration_; // Sum of squares in milliseconds.
};
@@ -128,7 +128,7 @@ class Snapshot {
const std::string DeathThreadName() const;
int count() const { return death_data_.count(); }
- TimeDelta life_duration() const { return death_data_.life_duration(); }
+ base::TimeDelta life_duration() const { return death_data_.life_duration(); }
int64 square_duration() const { return death_data_.square_duration(); }
int AverageMsDuration() const { return death_data_.AverageMsDuration(); }
@@ -339,7 +339,7 @@ class ThreadData {
Births* FindLifetime(const Location& location);
// Find a place to record a death on this thread.
- void TallyADeath(const Births& lifetimes, const TimeDelta& duration);
+ void TallyADeath(const Births& lifetimes, const base::TimeDelta& duration);
// (Thread safe) Get start of list of instances.
static ThreadData* first();