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 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
468 static const uint16_t kPersistentHandleNoClassId = 0; | 468 static const uint16_t kPersistentHandleNoClassId = 0; |
469 | 469 |
470 /** Returns memory used for profiler internal data and snapshots. */ | 470 /** Returns memory used for profiler internal data and snapshots. */ |
471 size_t GetProfilerMemorySize(); | 471 size_t GetProfilerMemorySize(); |
472 | 472 |
473 /** | 473 /** |
474 * Sets a RetainedObjectInfo for an object group (see V8::SetObjectGroupId). | 474 * Sets a RetainedObjectInfo for an object group (see V8::SetObjectGroupId). |
475 */ | 475 */ |
476 void SetRetainedObjectInfo(UniqueId id, RetainedObjectInfo* info); | 476 void SetRetainedObjectInfo(UniqueId id, RetainedObjectInfo* info); |
477 | 477 |
| 478 /** |
| 479 * Starts recording JS allocations immediately as they arrive and tracking of |
| 480 * heap objects population statistics. |
| 481 */ |
| 482 void StartRecordingHeapAllocations(); |
| 483 |
| 484 /** |
| 485 * Stops recording JS allocations and tracking of heap objects population |
| 486 * statistics, cleans all collected heap objects population statistics data. |
| 487 */ |
| 488 void StopRecordingHeapAllocations(); |
| 489 |
| 490 |
478 private: | 491 private: |
479 HeapProfiler(); | 492 HeapProfiler(); |
480 ~HeapProfiler(); | 493 ~HeapProfiler(); |
481 HeapProfiler(const HeapProfiler&); | 494 HeapProfiler(const HeapProfiler&); |
482 HeapProfiler& operator=(const HeapProfiler&); | 495 HeapProfiler& operator=(const HeapProfiler&); |
483 }; | 496 }; |
484 | 497 |
485 | 498 |
486 /** | 499 /** |
487 * Interface for providing information about embedder's objects | 500 * Interface for providing information about embedder's objects |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
567 uint32_t index; // Index of the time interval that was changed. | 580 uint32_t index; // Index of the time interval that was changed. |
568 uint32_t count; // New value of count field for the interval with this index. | 581 uint32_t count; // New value of count field for the interval with this index. |
569 uint32_t size; // New value of size field for the interval with this index. | 582 uint32_t size; // New value of size field for the interval with this index. |
570 }; | 583 }; |
571 | 584 |
572 | 585 |
573 } // namespace v8 | 586 } // namespace v8 |
574 | 587 |
575 | 588 |
576 #endif // V8_V8_PROFILER_H_ | 589 #endif // V8_V8_PROFILER_H_ |
OLD | NEW |