| 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 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 /** | 440 /** |
| 441 * Returns name to be used in the heap snapshot for given node. Returned | 441 * Returns name to be used in the heap snapshot for given node. Returned |
| 442 * string must stay alive until snapshot collection is completed. | 442 * string must stay alive until snapshot collection is completed. |
| 443 */ | 443 */ |
| 444 virtual const char* GetName(Handle<Object> object) = 0; | 444 virtual const char* GetName(Handle<Object> object) = 0; |
| 445 protected: | 445 protected: |
| 446 virtual ~ObjectNameResolver() {} | 446 virtual ~ObjectNameResolver() {} |
| 447 }; | 447 }; |
| 448 | 448 |
| 449 /** | 449 /** |
| 450 * Takes a heap snapshot and returns it. Title parameter is deprecated and | 450 * Takes a heap snapshot and returns it. |
| 451 * should be an empty string. | |
| 452 * TODO: deprecate this method. | |
| 453 */ | 451 */ |
| 454 const HeapSnapshot* TakeHeapSnapshot( | 452 const HeapSnapshot* TakeHeapSnapshot( |
| 455 Handle<String> title, | |
| 456 ActivityControl* control = NULL, | |
| 457 ObjectNameResolver* global_object_name_resolver = NULL); | |
| 458 | |
| 459 const HeapSnapshot* TakeHeapSnapshot( | |
| 460 ActivityControl* control = NULL, | 453 ActivityControl* control = NULL, |
| 461 ObjectNameResolver* global_object_name_resolver = NULL); | 454 ObjectNameResolver* global_object_name_resolver = NULL); |
| 462 | 455 |
| 463 /** | 456 /** |
| 464 * Starts tracking of heap objects population statistics. After calling | 457 * Starts tracking of heap objects population statistics. After calling |
| 465 * this method, all heap objects relocations done by the garbage collector | 458 * this method, all heap objects relocations done by the garbage collector |
| 466 * are being registered. | 459 * are being registered. |
| 467 * | 460 * |
| 468 * |track_allocations| parameter controls whether stack trace of each | 461 * |track_allocations| parameter controls whether stack trace of each |
| 469 * allocation in the heap will be recorded and reported as part of | 462 * allocation in the heap will be recorded and reported as part of |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 610 uint32_t index; // Index of the time interval that was changed. | 603 uint32_t index; // Index of the time interval that was changed. |
| 611 uint32_t count; // New value of count field for the interval with this index. | 604 uint32_t count; // New value of count field for the interval with this index. |
| 612 uint32_t size; // New value of size field for the interval with this index. | 605 uint32_t size; // New value of size field for the interval with this index. |
| 613 }; | 606 }; |
| 614 | 607 |
| 615 | 608 |
| 616 } // namespace v8 | 609 } // namespace v8 |
| 617 | 610 |
| 618 | 611 |
| 619 #endif // V8_V8_PROFILER_H_ | 612 #endif // V8_V8_PROFILER_H_ |
| OLD | NEW |