Foundations I – Profiling A run-time technique that gathers execution information – E.g., total # objects created during the execution How--- via program instrumentation void main(String[] s){ A a = new A(…); for(…){ B b = new B(…); } long totalObjs = 0; totalObjs ++; print(totalObjs);
{}