| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |