In one embodiment a computer system comprises one or more processors and a memory module communicatively connected to the one or more processors. The memory module comprises logic instructions which, when executed on the one or more processors configure the one or more processors to receive an interrupt in an execution thread of a process executing at an application layer of an operating system, intercept the interrupt in a profiling collector module invoked directly from a raw machine state, execute a profiling collection process, and return control from the interrupt to the execution thread when the profiling collection process is complete.