Collecting Performance Data While Running Unit Tests
A few years ago, I was teaching the basics of our %UnitTest framework during Caché Foundations class (now called Developing Using InterSystems Objects and SQL). A student asked if it was possible to collect performance statistics while running unit tests. A few weeks later, I added some additional code to the %UnitTest examples to answer this question. I’m finally sharing it on the Community.
The %SYSTEM,Process class provides several metrics that you can collect for a process (other than Duration).
- Lines Executed
- Global References
- System CPU Time
- User CPU Time
- Disk Read Time