com.google.caliper.runner
Class ResultDataWriter

java.lang.Object
  extended by 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.


Constructor Summary
ResultDataWriter()
           
 
Method Summary
 CaliperData getData()
          Return the CaliperData that was populated by the write* methods.
 String writeEnvironment(Environment env)
          Writes a copy of the given env to the CaliperData.
 String writeInstrument(Instrument instrument)
           
 void writeTrialResult(com.google.caliper.runner.TrialResult trialResult)
           
 String writeVM(VirtualMachine virtualMachine)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultDataWriter

public ResultDataWriter()
Method Detail

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.