Skip to content

First-call timing instrument #120

@GoogleCodeExporter

Description

@GoogleCodeExporter
Much of Caliper is focused on measuring performance in long-running processes. 
I'd like for us to also support measuring startup performance.

I've got some slow code that appears to perform well on microbenchmarks. The 
internal implementation of this code looks like this:

  private static X cached;

  public static X get() {
    if (cached != null) {
      return cached;
    }
    return cached = compute();
  }

  private static X compute() { ... }

Even if I cleared the static cache, it isn't appropriate to do multiple 
measurements in one VM because I need the measurement to include class loading 
time.

I'd like an instrument that forks a VM for each measurement taken. It would 
make a single time() call and exit the forked VM.

Original issue reported on code.google.com by jessewil...@google.com on 28 Mar 2011 at 6:22

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions