Class CmsFileBenchmarkReceiver

java.lang.Object
org.opencms.util.benchmark.CmsFileBenchmarkReceiver

public class CmsFileBenchmarkReceiver extends Object
Appends benchmark samples to a file.
  • Constructor Details

    • CmsFileBenchmarkReceiver

      Creates a new instance and configures it via the Java system properties.

      The following properties are used:

      • opencms.benchmark.file: the output file
      • opencms.benchmark.name: the benchmark name
      • opencms.benchmark.group: the benchmark group
    • CmsFileBenchmarkReceiver

      public CmsFileBenchmarkReceiver(String path, String benchmark, String group)
      Creates a new instance.
      Parameters:
      path - the output file path
      benchmark - the benchmark name
      group - the benchmark group
  • Method Details

    • receiveSample

      public void receiveSample(String sampleName, long sampleTime)
      See Also:
      • CmsBenchmarkTable.Receiver.receiveSample(java.lang.String, long)