Hey there,

I just profiled a node application with --prof and the 
tools/mac-tick-processor. The application requests a server on the 
localhost.
It has only 0.7% of JavaScript ticks that make sense to me, what I don't 
understand is the following C++ part:

 [C++]:
>
>    ticks  total  nonlib   name
>
>   54839   76.4%   76.4%  _getpid
>
>     485    0.7%    0.7% 
>>  v8::Object::HasIndexedPropertiesInExternalArrayData()
>
>     457    0.6%    0.6%  _sendto
>
>     378    0.5%    0.5%  _http_parser_execute
>
>     369    0.5%    0.5%  _mach_vm_map
>
>     362    0.5%    0.5%  v8::internal::Heap::AllocateRaw(int, 
>> v8::internal::AllocationSpace, v8::internal::AllocationSpace)
>
>     287    0.4%    0.4% 
>>  v8::Isolate::AdjustAmountOfExternalAllocatedMemory(long long)
>
>     274    0.4%    0.4% 
>>  v8::Object::SetIndexedPropertiesToExternalArrayData(void*, 
>> v8::ExternalArrayType, int)
>
>     259    0.4%    0.4% 
>>  
>> v8::internal::Map::FindTransitionedMap(v8::internal::List<v8::internal::Handle<v8::internal::Map>,
>>  
>> v8::internal::FreeStoreAllocationPolicy>*)
>
>     251    0.3%    0.3% 
>>  
>> v8::internal::JSObject::GetElementsTransitionMap(v8::internal::Handle<v8::internal::JSObject>,
>>  
>> v8::internal::ElementsKind)
>
>     237    0.3%    0.3%  _malloc_jumpstart
>
>     228    0.3%    0.3%  v8::internal::Heap::AllocateExternalArray(int, 
>> v8::ExternalArrayType, void*, v8::internal::PretenureFlag)
>
>     222    0.3%    0.3% 
>>  v8::internal::TransitionArray::Search(v8::internal::Name*)
>
>     217    0.3%    0.3%  v8::internal::Heap::PromotedExternalMemorySize()
>
>     209    0.3%    0.3% 
>>  v8::internal::HandleScope::ZapRange(v8::internal::Object**, 
>> v8::internal::Object**)
>
>     206    0.3%    0.3%  v8::internal::Context::native_context()
>
>     184    0.3%    0.3%  v8::internal::Map::Copy()
>
>     179    0.2%    0.2%  node::smalloc::Alloc(node::Environment*, 
>> v8::Handle<v8::Object>, char*, unsigned long, v8::ExternalArrayType)
>
>     174    0.2%    0.2%  v8::internal::Factory::NewExternalArray(int, 
>> v8::ExternalArrayType, void*, v8::internal::PretenureFlag)
>
>     161    0.2%    0.2% 
>>  
>> v8::internal::JSObject::GetElementsTransitionMapSlow(v8::internal::ElementsKind)
>
>     152    0.2%    0.2% 
>>  v8::internal::V8::FireCallCompletedCallback(v8::internal::Isolate*)
>
>     146    0.2%    0.2%  _create_scalable_zone
>
>
What does the _getpid mean? Is there a way to avoid the calls to pid?

I searched for getpid() calls in the sources, but mostly found them in the 
tests.

Thanks for any interpretation hints.
Tommy

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to