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 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
475 | 475 |
476 /** | 476 /** |
477 * Default value of persistent handle class ID. Must not be used to | 477 * Default value of persistent handle class ID. Must not be used to |
478 * define a class. Can be used to reset a class of a persistent | 478 * define a class. Can be used to reset a class of a persistent |
479 * handle. | 479 * handle. |
480 */ | 480 */ |
481 static const uint16_t kPersistentHandleNoClassId = 0; | 481 static const uint16_t kPersistentHandleNoClassId = 0; |
482 | 482 |
483 /** Returns the number of currently existing persistent handles. */ | 483 /** Returns the number of currently existing persistent handles. */ |
484 static int GetPersistentHandleCount(); | 484 static int GetPersistentHandleCount(); |
| 485 |
| 486 /** Returns memory used for profiler internal data and snapshots. */ |
| 487 static size_t GetMemorySizeUsedByProfiler(); |
485 }; | 488 }; |
486 | 489 |
487 | 490 |
488 /** | 491 /** |
489 * Interface for providing information about embedder's objects | 492 * Interface for providing information about embedder's objects |
490 * held by global handles. This information is reported in two ways: | 493 * held by global handles. This information is reported in two ways: |
491 * | 494 * |
492 * 1. When calling AddObjectGroup, an embedder may pass | 495 * 1. When calling AddObjectGroup, an embedder may pass |
493 * RetainedObjectInfo instance describing the group. To collect | 496 * RetainedObjectInfo instance describing the group. To collect |
494 * this information while taking a heap snapshot, V8 calls GC | 497 * this information while taking a heap snapshot, V8 calls GC |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
572 }; | 575 }; |
573 | 576 |
574 | 577 |
575 } // namespace v8 | 578 } // namespace v8 |
576 | 579 |
577 | 580 |
578 #undef V8EXPORT | 581 #undef V8EXPORT |
579 | 582 |
580 | 583 |
581 #endif // V8_V8_PROFILER_H_ | 584 #endif // V8_V8_PROFILER_H_ |
OLD | NEW |