Manual runtime instrumentation