link to google profiler
This commit is contained in:
Родитель
ae7c6314ca
Коммит
0bb12be660
|
@ -58,11 +58,11 @@ ObjectWrap::Detach ()
|
|||
}
|
||||
|
||||
void*
|
||||
ObjectWrap::Unwrap (v8::Handle<v8::Object> handle)
|
||||
ObjectWrap::Unwrap (Handle<Object> handle)
|
||||
{
|
||||
v8::HandleScope scope;
|
||||
v8::Handle<v8::External> field =
|
||||
v8::Handle<v8::External>::Cast(handle->GetInternalField(0));
|
||||
HandleScope scope;
|
||||
Handle<External> field =
|
||||
Handle<External>::Cast(handle->GetInternalField(0));
|
||||
return field->Value();
|
||||
}
|
||||
|
||||
|
|
8
wscript
8
wscript
|
@ -55,6 +55,8 @@ def configure(conf):
|
|||
conf.env.append_value("CCFLAGS", "-DEIO_STACKSIZE=%d" % (4096*8))
|
||||
conf.check(lib='rt', uselib_store='RT')
|
||||
|
||||
conf.check(lib='profiler', uselib_store='PROFILER')
|
||||
|
||||
# Split off debug variant before adding variant specific defines
|
||||
debug_env = conf.env.copy()
|
||||
conf.set_env_name('debug', debug_env)
|
||||
|
@ -68,8 +70,8 @@ def configure(conf):
|
|||
|
||||
# Configure default variant
|
||||
conf.setenv('default')
|
||||
conf.env.append_value('CCFLAGS', ['-DNDEBUG', '-O2'])
|
||||
conf.env.append_value('CXXFLAGS', ['-DNDEBUG', '-O2'])
|
||||
conf.env.append_value('CCFLAGS', ['-DNDEBUG', '-O3'])
|
||||
conf.env.append_value('CXXFLAGS', ['-DNDEBUG', '-O3'])
|
||||
conf.write_config_header("config.h")
|
||||
|
||||
def build(bld):
|
||||
|
@ -165,7 +167,7 @@ def build(bld):
|
|||
deps/http_parser
|
||||
"""
|
||||
node.uselib_local = "oi ev eio http_parser"
|
||||
node.uselib = "V8 RT"
|
||||
node.uselib = "V8 RT PROFILER"
|
||||
node.install_path = '${PREFIX}/bin'
|
||||
node.chmod = 0755
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче