use of org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Stopwatch in project beam by apache.
the class GcsFileSystem method copy.
@Override
protected void copy(List<GcsResourceId> srcResourceIds, List<GcsResourceId> destResourceIds) throws IOException {
Stopwatch stopwatch = Stopwatch.createStarted();
options.getGcsUtil().copy(toFilenames(srcResourceIds), toFilenames(destResourceIds));
stopwatch.stop();
if (options.getGcsPerformanceMetrics()) {
numCopies.inc(srcResourceIds.size());
copyTimeMsec.inc(stopwatch.elapsed(TimeUnit.MILLISECONDS));
}
}
Aggregations