I need a program

You can use the built-in profiler or ETW tracing