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