Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: include/v8.h

Issue 59373003: AllocationProfiler: introduce allocation_profiler flag in V8 api. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/allocation-tracker.cc » ('j') | src/x64/macro-assembler-x64.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 4569 matching lines...) Expand 10 before | Expand all | Expand 10 after
4580 * \param entry_hook a function that will be invoked on entry to every 4580 * \param entry_hook a function that will be invoked on entry to every
4581 * V8-generated function. 4581 * V8-generated function.
4582 * \returns true on success on supported platforms, false on failure. 4582 * \returns true on success on supported platforms, false on failure.
4583 * \note Setting an entry hook can only be done very early in an isolates 4583 * \note Setting an entry hook can only be done very early in an isolates
4584 * lifetime, and once set, the entry hook cannot be revoked. 4584 * lifetime, and once set, the entry hook cannot be revoked.
4585 */ 4585 */
4586 static bool SetFunctionEntryHook(Isolate* isolate, 4586 static bool SetFunctionEntryHook(Isolate* isolate,
4587 FunctionEntryHook entry_hook); 4587 FunctionEntryHook entry_hook);
4588 4588
4589 /** 4589 /**
4590 * Allows the host application to enable allocation profiler.
4591 *
4592 * \param isolate the isolate to operate on.
4593 * \returns true on success, false on failure.
4594 * \note Enabling allocation profiler can only be done very early in
4595 * an isolates lifetime, and once set, it cannot be revoked.
4596 * It affects isolate initalization time.
4597 */
4598 static bool EnableAllocationProfiler(Isolate* isolate);
4599
4600 /**
4601 * Allows the host application to get the status of allocation profiler.
4602 *
4603 * \param isolate the isolate to operate on.
4604 * \returns true if profiler has been enabled and false otherwise.
4605 */ static bool IsAllocationProfilerEnabled(Isolate* isolate);
alph 2013/11/05 13:55:20 nit: a new line
4606
4607 /**
4590 * Allows the host application to provide the address of a function that is 4608 * Allows the host application to provide the address of a function that is
4591 * notified each time code is added, moved or removed. 4609 * notified each time code is added, moved or removed.
4592 * 4610 *
4593 * \param options options for the JIT code event handler. 4611 * \param options options for the JIT code event handler.
4594 * \param event_handler the JIT code event handler, which will be invoked 4612 * \param event_handler the JIT code event handler, which will be invoked
4595 * each time code is added, moved or removed. 4613 * each time code is added, moved or removed.
4596 * \note \p event_handler won't get notified of existent code. 4614 * \note \p event_handler won't get notified of existent code.
4597 * \note since code removal notifications are not currently issued, the 4615 * \note since code removal notifications are not currently issued, the
4598 * \p event_handler may get notifications of code that overlaps earlier 4616 * \p event_handler may get notifications of code that overlaps earlier
4599 * code notifications. This happens when code areas are reused, and the 4617 * code notifications. This happens when code areas are reused, and the
(...skipping 1899 matching lines...) Expand 10 before | Expand all | Expand 10 after
6499 */ 6517 */
6500 6518
6501 6519
6502 } // namespace v8 6520 } // namespace v8
6503 6521
6504 6522
6505 #undef TYPE_CHECK 6523 #undef TYPE_CHECK
6506 6524
6507 6525
6508 #endif // V8_H_ 6526 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/allocation-tracker.cc » ('j') | src/x64/macro-assembler-x64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698