def metric(self, name, count, elapsed):
if name is None:<EOL><INDENT>warnings.warn("<STR_LIT>", stacklevel=<NUM_LIT:3>)<EOL>return<EOL><DEDENT>with self.lock:<EOL><INDENT>self.writer.writerow((name, count, "<STR_LIT>"%elapsed))<EOL><DEDENT>
A metric function that writes a single CSV file

        :arg str name: name of the metric
        :arg int count: number of items
        :arg float elapsed: time in seconds