| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 the V8 project 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 V8_V8_PROFILER_H_ | 5 #ifndef V8_V8_PROFILER_H_ |
| 6 #define V8_V8_PROFILER_H_ | 6 #define V8_V8_PROFILER_H_ |
| 7 | 7 |
| 8 #include "v8.h" | 8 #include "v8.h" |
| 9 | 9 |
| 10 /** | 10 /** |
| (...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 * will not be added into it unless a heap snapshot is taken or heap object | 441 * will not be added into it unless a heap snapshot is taken or heap object |
| 442 * tracking is kicked off. | 442 * tracking is kicked off. |
| 443 */ | 443 */ |
| 444 void ClearObjectIds(); | 444 void ClearObjectIds(); |
| 445 | 445 |
| 446 /** | 446 /** |
| 447 * A constant for invalid SnapshotObjectId. GetSnapshotObjectId will return | 447 * A constant for invalid SnapshotObjectId. GetSnapshotObjectId will return |
| 448 * it in case heap profiler cannot find id for the object passed as | 448 * it in case heap profiler cannot find id for the object passed as |
| 449 * parameter. HeapSnapshot::GetNodeById will always return NULL for such id. | 449 * parameter. HeapSnapshot::GetNodeById will always return NULL for such id. |
| 450 */ | 450 */ |
| 451 static const SnapshotObjectId kUnknownObjectId = 0; | 451 enum { kUnknownObjectId }; |
| 452 | 452 |
| 453 /** | 453 /** |
| 454 * Callback interface for retrieving user friendly names of global objects. | 454 * Callback interface for retrieving user friendly names of global objects. |
| 455 */ | 455 */ |
| 456 class ObjectNameResolver { | 456 class ObjectNameResolver { |
| 457 public: | 457 public: |
| 458 /** | 458 /** |
| 459 * Returns name to be used in the heap snapshot for given node. Returned | 459 * Returns name to be used in the heap snapshot for given node. Returned |
| 460 * string must stay alive until snapshot collection is completed. | 460 * string must stay alive until snapshot collection is completed. |
| 461 */ | 461 */ |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 622 uint32_t index; // Index of the time interval that was changed. | 622 uint32_t index; // Index of the time interval that was changed. |
| 623 uint32_t count; // New value of count field for the interval with this index. | 623 uint32_t count; // New value of count field for the interval with this index. |
| 624 uint32_t size; // New value of size field for the interval with this index. | 624 uint32_t size; // New value of size field for the interval with this index. |
| 625 }; | 625 }; |
| 626 | 626 |
| 627 | 627 |
| 628 } // namespace v8 | 628 } // namespace v8 |
| 629 | 629 |
| 630 | 630 |
| 631 #endif // V8_V8_PROFILER_H_ | 631 #endif // V8_V8_PROFILER_H_ |
| OLD | NEW |