OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 4529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4540 */ | 4540 */ |
4541 static void SetJitCodeEventHandler(JitCodeEventOptions options, | 4541 static void SetJitCodeEventHandler(JitCodeEventOptions options, |
4542 JitCodeEventHandler event_handler); | 4542 JitCodeEventHandler event_handler); |
4543 | 4543 |
4544 // TODO(svenpanne) Really deprecate me when Chrome is fixed. | 4544 // TODO(svenpanne) Really deprecate me when Chrome is fixed. |
4545 /** Deprecated. Use Isolate::AdjustAmountOfExternalAllocatedMemory instead. */ | 4545 /** Deprecated. Use Isolate::AdjustAmountOfExternalAllocatedMemory instead. */ |
4546 static intptr_t AdjustAmountOfExternalAllocatedMemory( | 4546 static intptr_t AdjustAmountOfExternalAllocatedMemory( |
4547 intptr_t change_in_bytes); | 4547 intptr_t change_in_bytes); |
4548 | 4548 |
4549 /** | 4549 /** |
4550 * Suspends recording of tick samples in the profiler. | |
4551 * When the V8 profiling mode is enabled (usually via command line | |
4552 * switches) this function suspends recording of tick samples. | |
4553 * Profiling ticks are discarded until ResumeProfiler() is called. | |
4554 * | |
4555 * See also the --prof and --prof_auto command line switches to | |
4556 * enable V8 profiling. | |
4557 */ | |
4558 V8_DEPRECATED(static void PauseProfiler()); | |
4559 | |
4560 /** | |
4561 * Resumes recording of tick samples in the profiler. | |
4562 * See also PauseProfiler(). | |
4563 */ | |
4564 V8_DEPRECATED(static void ResumeProfiler()); | |
4565 | |
4566 /** | |
4567 * Return whether profiler is currently paused. | |
4568 */ | |
4569 V8_DEPRECATED(static bool IsProfilerPaused()); | |
4570 | |
4571 /** | |
4572 * Retrieve the V8 thread id of the calling thread. | 4550 * Retrieve the V8 thread id of the calling thread. |
4573 * | 4551 * |
4574 * The thread id for a thread should only be retrieved after the V8 | 4552 * The thread id for a thread should only be retrieved after the V8 |
4575 * lock has been acquired with a Locker object with that thread. | 4553 * lock has been acquired with a Locker object with that thread. |
4576 */ | 4554 */ |
4577 static int GetCurrentThreadId(); | 4555 static int GetCurrentThreadId(); |
4578 | 4556 |
4579 /** | 4557 /** |
4580 * Forcefully terminate execution of a JavaScript thread. This can | 4558 * Forcefully terminate execution of a JavaScript thread. This can |
4581 * be used to terminate long-running scripts. | 4559 * be used to terminate long-running scripts. |
(...skipping 1929 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6511 */ | 6489 */ |
6512 | 6490 |
6513 | 6491 |
6514 } // namespace v8 | 6492 } // namespace v8 |
6515 | 6493 |
6516 | 6494 |
6517 #undef TYPE_CHECK | 6495 #undef TYPE_CHECK |
6518 | 6496 |
6519 | 6497 |
6520 #endif // V8_H_ | 6498 #endif // V8_H_ |
OLD | NEW |