|
From: Jeremy F. <je...@go...> - 2002-10-18 06:31:00
|
On Thu, 2002-10-17 at 13:40, Josef Weidendorfer wrote: > Reason: When a user want's to profile only a short part of a run, but this > part is 10 CPU min. from the program start, it would be nice to go on to that > place with no tracing at all... > I know this will kill the cache simulation somehow... but that's the same > problem with the traced data at the very beginning of a profile run. > > Alternative approach: A new CCALL only jumping to the helper when a flag is > set... Well, one option would be to add an API for skins so that they can change their helper function pointers in the baseblock. That way you could point it to a simple no-op until you want it to do something. On the other hand, putting a: if (!active) return; at the top would get the same effect with very little additional performance hit. The alternative would be to regenerate the code, but I think that would be much more expensive. J |