An object that controls profiling of instrumented byte-code.
The instrumentation is achieved by using the java.lang.instrument package.
The instrumentation agent can be found in the ch.epfl.lamp.instragent
package.
At the moment the following classes are being instrumented:
* all classes with empty package
* all classes from scala package (except for classes responsible for
instrumentation)
The following code in main:
import ch.epfl.lamp.grading.instrumented.Instrumentation._
def main(args: Array[String]): Unit = {
startProfiling()
// should box the boolean
println(true)
stopProfiling()
printStatistics()
}
An object that controls profiling of instrumented byte-code.
The instrumentation is achieved by using the
java.lang.instrument
package. The instrumentation agent can be found in thech.epfl.lamp.instragent
package.At the moment the following classes are being instrumented: * all classes with empty package * all classes from scala package (except for classes responsible for instrumentation)
The following code in main:
should print: