// These statistics are reported to the profile reports
// directly, with the ProfileCollector.
// They should not be reported as TASK_AND_AGGREGATE because,
// for nested tasks, we don't want to merge their values into
// the parent's value.
ProfileDataType type = ProfileDataType.AGGREGATE;
numTasks = (AggregateProfileCounter)
consumer.createCounter("numTasks", type, level);
numTransactionalTasks = (AggregateProfileCounter)
consumer.createCounter("numTransactionalTasks", type, level);