Revision: 3831 Author: [email protected] Date: Wed Feb 10 09:50:16 2010 Log: Report code stubs to OProfile.
Patch from Dineel D Sule <[email protected]>. Original issue: http://codereview.chromium.org/600019 [email protected] Review URL: http://codereview.chromium.org/593038 http://code.google.com/p/v8/source/detail?r=3831 Modified: /branches/bleeding_edge/AUTHORS /branches/bleeding_edge/src/code-stubs.cc ======================================= --- /branches/bleeding_edge/AUTHORS Thu Feb 4 12:36:58 2010 +++ /branches/bleeding_edge/AUTHORS Wed Feb 10 09:50:16 2010 @@ -23,3 +23,4 @@ Ryan Dahl <[email protected]> Patrick Gansterer <[email protected]> Subrato K De <[email protected]> +Dineel D Sule <[email protected]> ======================================= --- /branches/bleeding_edge/src/code-stubs.cc Fri Feb 5 05:07:00 2010 +++ /branches/bleeding_edge/src/code-stubs.cc Wed Feb 10 09:50:16 2010 @@ -31,6 +31,7 @@ #include "code-stubs.h" #include "factory.h" #include "macro-assembler.h" +#include "oprofile-agent.h" namespace v8 { namespace internal { @@ -63,6 +64,13 @@ // Add unresolved entries in the code to the fixup list. Bootstrapper::AddFixup(code, masm); +#ifdef ENABLE_OPROFILE_AGENT + // Register the generated stub with the OPROFILE agent. + OProfileAgent::CreateNativeCodeRegion(GetName(), + code->instruction_start(), + code->instruction_size()); +#endif + LOG(CodeCreateEvent(Logger::STUB_TAG, code, GetName())); Counters::total_stubs_code_size.Increment(code->instruction_size()); -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
