implementing per process instrumentation