I've got a relatively long function that's dominant in the Instruments Time Profiler. Is there a way to add additional symbols to this function so the sampling will show time allocated to different parts of the function? I'm looking for something like the MARK macro that existed for prof(1) years ago.
Using the macro:
#define MARK(K) asm("M."#K":");
has been working well for me. This is really just a simplification of the old MARK macro I mentioned in my original question. Placing MARK(LOOP1); somewhere in a function will add a new symbol, M.LOOP1 that will show up in a list of functions shown by shark or instruments.