| 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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 */ | 441 */ |
| 442 static void StartHeapObjectsTracking(); | 442 static void StartHeapObjectsTracking(); |
| 443 | 443 |
| 444 /** | 444 /** |
| 445 * Adds a new time interval entry to the aggregated statistics array. The | 445 * Adds a new time interval entry to the aggregated statistics array. The |
| 446 * time interval entry contains information on the current heap objects | 446 * time interval entry contains information on the current heap objects |
| 447 * population size. The method also updates aggregated statistics and | 447 * population size. The method also updates aggregated statistics and |
| 448 * reports updates for all previous time intervals via the OutputStream | 448 * reports updates for all previous time intervals via the OutputStream |
| 449 * object. Updates on each time interval are provided as a stream of the | 449 * object. Updates on each time interval are provided as a stream of the |
| 450 * HeapStatsUpdate structure instances. | 450 * HeapStatsUpdate structure instances. |
| 451 * The return value of the function is the last seen heap object Id. |
| 451 * | 452 * |
| 452 * StartHeapObjectsTracking must be called before the first call to this | 453 * StartHeapObjectsTracking must be called before the first call to this |
| 453 * method. | 454 * method. |
| 454 */ | 455 */ |
| 455 static void PushHeapObjectsStats(OutputStream* stream); | 456 static SnapshotObjectId PushHeapObjectsStats(OutputStream* stream); |
| 456 | 457 |
| 457 /** | 458 /** |
| 458 * Stops tracking of heap objects population statistics, cleans up all | 459 * Stops tracking of heap objects population statistics, cleans up all |
| 459 * collected data. StartHeapObjectsTracking must be called again prior to | 460 * collected data. StartHeapObjectsTracking must be called again prior to |
| 460 * calling PushHeapObjectsStats next time. | 461 * calling PushHeapObjectsStats next time. |
| 461 */ | 462 */ |
| 462 static void StopHeapObjectsTracking(); | 463 static void StopHeapObjectsTracking(); |
| 463 | 464 |
| 464 /** | 465 /** |
| 465 * Deletes all snapshots taken. All previously returned pointers to | 466 * Deletes all snapshots taken. All previously returned pointers to |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 571 }; | 572 }; |
| 572 | 573 |
| 573 | 574 |
| 574 } // namespace v8 | 575 } // namespace v8 |
| 575 | 576 |
| 576 | 577 |
| 577 #undef V8EXPORT | 578 #undef V8EXPORT |
| 578 | 579 |
| 579 | 580 |
| 580 #endif // V8_V8_PROFILER_H_ | 581 #endif // V8_V8_PROFILER_H_ |
| OLD | NEW |