com.google.caliper.runner
Class ResultDataWriter
java.lang.Object
com.google.caliper.runner.ResultDataWriter
public final class ResultDataWriter
- extends Object
Utility class to create and populate a CaliperData
. Instances of this class are not
threadsafe.
ResultDataWriter
public ResultDataWriter()
getData
public CaliperData getData()
- Return the
CaliperData
that was populated by the write* methods.
writeEnvironment
public String writeEnvironment(Environment env)
- Writes a copy of the given
env
to the CaliperData
. This method uses the given
environment's localName if it's set; otherwise, it assigns a meaningless localName to the copy.
writeVM
public String writeVM(VirtualMachine virtualMachine)
writeInstrument
public String writeInstrument(Instrument instrument)
writeTrialResult
public void writeTrialResult(com.google.caliper.runner.TrialResult trialResult)
Copyright © 2009-2011 Google, Inc.. All Rights Reserved.