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

Side by Side Diff: base/tracked_objects.h

Issue 7778033: Add trace code to track all posted tasks in message_loop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win trace tests Created 9 years, 3 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef BASE_TRACKED_OBJECTS_H_ 5 #ifndef BASE_TRACKED_OBJECTS_H_
6 #define BASE_TRACKED_OBJECTS_H_ 6 #define BASE_TRACKED_OBJECTS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 339
340 void AddDeathSnapshot(const Snapshot& snapshot); 340 void AddDeathSnapshot(const Snapshot& snapshot);
341 void AddBirths(const Births& births); 341 void AddBirths(const Births& births);
342 void AddBirth(const BirthOnThread& birth); 342 void AddBirth(const BirthOnThread& birth);
343 void AddBirthPlace(const Location& location); 343 void AddBirthPlace(const Location& location);
344 void Write(std::string* output) const; 344 void Write(std::string* output) const;
345 void Clear(); 345 void Clear();
346 346
347 private: 347 private:
348 int birth_count_; 348 int birth_count_;
349 std::map<std::string, int> birth_files_; 349 std::map<base::StringPiece, int> birth_files_;
350 std::map<Location, int> locations_; 350 std::map<Location, int> locations_;
351 std::map<const ThreadData*, int> birth_threads_; 351 std::map<const ThreadData*, int> birth_threads_;
352 DeathData death_data_; 352 DeathData death_data_;
353 std::map<const ThreadData*, int> death_threads_; 353 std::map<const ThreadData*, int> death_threads_;
354 354
355 DISALLOW_COPY_AND_ASSIGN(Aggregation); 355 DISALLOW_COPY_AND_ASSIGN(Aggregation);
356 }; 356 };
357 357
358 //------------------------------------------------------------------------------ 358 //------------------------------------------------------------------------------
359 // Comparator is a class that supports the comparison of Snapshot instances. 359 // Comparator is a class that supports the comparison of Snapshot instances.
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 }; 666 };
667 static State state_; 667 static State state_;
668 668
669 DISALLOW_COPY_AND_ASSIGN(AutoTracking); 669 DISALLOW_COPY_AND_ASSIGN(AutoTracking);
670 }; 670 };
671 671
672 672
673 } // namespace tracked_objects 673 } // namespace tracked_objects
674 674
675 #endif // BASE_TRACKED_OBJECTS_H_ 675 #endif // BASE_TRACKED_OBJECTS_H_
OLDNEW
« base/tracked.cc ('K') | « base/tracked.cc ('k') | base/tracked_objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698