Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 472 static const uint16_t kPersistentHandleNoClassId = 0; | 472 static const uint16_t kPersistentHandleNoClassId = 0; |
| 473 | 473 |
| 474 /** Returns memory used for profiler internal data and snapshots. */ | 474 /** Returns memory used for profiler internal data and snapshots. */ |
| 475 size_t GetProfilerMemorySize(); | 475 size_t GetProfilerMemorySize(); |
| 476 | 476 |
| 477 /** | 477 /** |
| 478 * Sets a RetainedObjectInfo for an object group (see V8::SetObjectGroupId). | 478 * Sets a RetainedObjectInfo for an object group (see V8::SetObjectGroupId). |
| 479 */ | 479 */ |
| 480 void SetRetainedObjectInfo(UniqueId id, RetainedObjectInfo* info); | 480 void SetRetainedObjectInfo(UniqueId id, RetainedObjectInfo* info); |
| 481 | 481 |
| 482 /** | |
| 483 * Starts recording JS allocations immediately as they arrive and tracking of | |
| 484 * heap objects population statistics. | |
| 485 */ | |
|
yurys
2013/12/06 09:38:54
These two can be removed not earlier than in V8 v.
Sven Panne
2013/12/06 10:24:44
That was the plan: Land this CL after the upcoming
| |
| 486 V8_DEPRECATED("Use StartTrackingHeapObjects instead", | |
| 487 void StartRecordingHeapAllocations()); | |
| 488 | |
| 489 /** | |
| 490 * Stops recording JS allocations and tracking of heap objects population | |
| 491 * statistics, cleans all collected heap objects population statistics data. | |
| 492 */ | |
| 493 V8_DEPRECATED("Use StopTrackingHeapObjects instead", | |
| 494 void StopRecordingHeapAllocations()); | |
| 495 | |
| 496 | |
| 497 private: | 482 private: |
| 498 HeapProfiler(); | 483 HeapProfiler(); |
| 499 ~HeapProfiler(); | 484 ~HeapProfiler(); |
| 500 HeapProfiler(const HeapProfiler&); | 485 HeapProfiler(const HeapProfiler&); |
| 501 HeapProfiler& operator=(const HeapProfiler&); | 486 HeapProfiler& operator=(const HeapProfiler&); |
| 502 }; | 487 }; |
| 503 | 488 |
| 504 | 489 |
| 505 /** | 490 /** |
| 506 * Interface for providing information about embedder's objects | 491 * Interface for providing information about embedder's objects |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 586 uint32_t index; // Index of the time interval that was changed. | 571 uint32_t index; // Index of the time interval that was changed. |
| 587 uint32_t count; // New value of count field for the interval with this index. | 572 uint32_t count; // New value of count field for the interval with this index. |
| 588 uint32_t size; // New value of size field for the interval with this index. | 573 uint32_t size; // New value of size field for the interval with this index. |
| 589 }; | 574 }; |
| 590 | 575 |
| 591 | 576 |
| 592 } // namespace v8 | 577 } // namespace v8 |
| 593 | 578 |
| 594 | 579 |
| 595 #endif // V8_V8_PROFILER_H_ | 580 #endif // V8_V8_PROFILER_H_ |
| OLD | NEW |