The profiler has two distinct modes. You can use both in the same session, but not at the same time.
To use either mode, you must first call
to load the profiler and set its parameters including the output format.
simply profiles all processes while a body of code is run, as described in Using the macro profile. Start profiling this way if you don't see a need to use the alternate mode.
Alternatively the functions
offer programmatic control over when profiling occurs and which processes are profiled. This is described in Programmatic control of profiling.