Metacomments are special comments that will be expanded if at least one procedure in current unit is instrumented.
You can use them to conditionally execute commands only when unit is profiled.
Typical example is to start/stop profiling. Instead of writing
procedure Test;
begin
ProfilerStart;
{ some code }
ProfilerStop;
end; { Test }
you should write
procedure Test;
begin
{GPP:ProfilerStart;}
{ some code }
{GPP:ProfilerStop;}
end; { Test }
When at least one procedure from the unit is instrumented, instrumentation process will change this to
procedure Test;
begin
{>>GpProfile API}ProfilerStart;{GpProfile API>>}
{ some code }
{>>GpProfile API}ProfilerStop;{GpProfile API>>}
end; { Test }
When no procedure from the unit are instrumented, instrumentation process will change this to original (commented out) form.