public String[][] stacktraces;
@API(help="Array of Profile Counts, one per Node in the Cluster")
public int[][] counts;
@Override public Profiler createImpl() {
Profiler profiler = new Profiler();
if (depth < 1) throw new IllegalArgumentException("depth must be >= 1.");
profiler._depth = depth;
profiler._stacktraces = stacktraces;
profiler._counts = counts;
return profiler;