Virtual Pascal

Classic Object Pascal for free

Does anyone have any tools to profile (Virtual) Pascal code?

I do have something home-cooked that now just records every call to every procedure, or to be more concrete, every procedure that brackets its code between "//p-in <name of procedure>" and "//p-out" (or a-in/a-out for procedures written in assembler). It works and I could potentially add some RDTSC code to it, but how do I prevent, other than running the program multiple times and averaging the totals, Windows task-switches to play havoc with the results?

Views: 112

Reply to This

Replies to This Discussion

Use queryperformancetimer/frequency.instead of rdtsc.


© 2022   Created by Allan Mertner.   Powered by

Report an Issue  |  Terms of Service