Bare scope oriented intrusive profiler for unmanaged C++ code