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

Side by Side Diff: base/tracked_objects.cc

Issue 7995: Move Time, TimeDelta and TimeTicks into namespace base. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium 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 #include "base/tracked_objects.h" 5 #include "base/tracked_objects.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 8
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 10
11 using base::TimeDelta;
12
11 namespace tracked_objects { 13 namespace tracked_objects {
12 14
13 // A TLS slot to the TrackRegistry for the current thread. 15 // A TLS slot to the TrackRegistry for the current thread.
14 // static 16 // static
15 TLSSlot ThreadData::tls_index_(base::LINKER_INITIALIZED); 17 TLSSlot ThreadData::tls_index_(base::LINKER_INITIALIZED);
16 18
17 //------------------------------------------------------------------------------ 19 //------------------------------------------------------------------------------
18 // Death data tallies durations when a death takes place. 20 // Death data tallies durations when a death takes place.
19 21
20 void DeathData::RecordDeath(const TimeDelta& duration) { 22 void DeathData::RecordDeath(const TimeDelta& duration) {
(...skipping 875 matching lines...) Expand 10 before | Expand all | Expand 10 after
896 sample.birth().birth_thread()->ThreadName().c_str(), 898 sample.birth().birth_thread()->ThreadName().c_str(),
897 (combined_selectors_ & DEATH_THREAD) ? "*" : 899 (combined_selectors_ & DEATH_THREAD) ? "*" :
898 sample.DeathThreadName().c_str()); 900 sample.DeathThreadName().c_str());
899 sample.birth().location().Write(!(combined_selectors_ & BIRTH_FILE), 901 sample.birth().location().Write(!(combined_selectors_ & BIRTH_FILE),
900 !(combined_selectors_ & BIRTH_FUNCTION), 902 !(combined_selectors_ & BIRTH_FUNCTION),
901 output); 903 output);
902 } 904 }
903 905
904 } // namespace tracked_objects 906 } // namespace tracked_objects
905 907
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698