getPerfCounters method

void getPerfCounters(
  1. IStatus status,
  2. IAttachment attachment,
  3. String countersSet,
  4. Pointer<Int64> counters,
)

Implementation

void getPerfCounters(
  IStatus status,
  IAttachment attachment,
  String countersSet,
  Pointer<Int64> counters,
) {
  final countersSetUtf = countersSet.toNativeUtf8(allocator: mem);
  try {
    _getPerfCounters(
      self,
      status.self,
      attachment.self,
      countersSetUtf,
      counters,
    );
    status.checkStatus();
  } finally {
    mem.free(countersSetUtf);
  }
}