| 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 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 | 410 |
| 411 /** | 411 /** |
| 412 * Takes a heap snapshot and returns it. Title may be an empty string. | 412 * Takes a heap snapshot and returns it. Title may be an empty string. |
| 413 * See HeapSnapshot::Type for types description. | 413 * See HeapSnapshot::Type for types description. |
| 414 */ | 414 */ |
| 415 static const HeapSnapshot* TakeSnapshot( | 415 static const HeapSnapshot* TakeSnapshot( |
| 416 Handle<String> title, | 416 Handle<String> title, |
| 417 HeapSnapshot::Type type = HeapSnapshot::kFull, | 417 HeapSnapshot::Type type = HeapSnapshot::kFull, |
| 418 ActivityControl* control = NULL); | 418 ActivityControl* control = NULL); |
| 419 | 419 |
| 420 static void StartHeapObjectsTracking(); |
| 421 static void StopHeapObjectsTracking(); |
| 422 static void PushHeapObjectsStats(OutputStream* stream); |
| 423 |
| 420 /** | 424 /** |
| 421 * Deletes all snapshots taken. All previously returned pointers to | 425 * Deletes all snapshots taken. All previously returned pointers to |
| 422 * snapshots and their contents become invalid after this call. | 426 * snapshots and their contents become invalid after this call. |
| 423 */ | 427 */ |
| 424 static void DeleteAllSnapshots(); | 428 static void DeleteAllSnapshots(); |
| 425 | 429 |
| 426 /** Binds a callback to embedder's class ID. */ | 430 /** Binds a callback to embedder's class ID. */ |
| 427 static void DefineWrapperClass( | 431 static void DefineWrapperClass( |
| 428 uint16_t class_id, | 432 uint16_t class_id, |
| 429 WrapperInfoCallback callback); | 433 WrapperInfoCallback callback); |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 514 }; | 518 }; |
| 515 | 519 |
| 516 | 520 |
| 517 } // namespace v8 | 521 } // namespace v8 |
| 518 | 522 |
| 519 | 523 |
| 520 #undef V8EXPORT | 524 #undef V8EXPORT |
| 521 | 525 |
| 522 | 526 |
| 523 #endif // V8_V8_PROFILER_H_ | 527 #endif // V8_V8_PROFILER_H_ |
| OLD | NEW |