def _add_billed_op_to_trace(trace, num_ops, op):
 if num_ops:
  billed_op = trace.add_billed_ops()
  billed_op.set_num_ops(num_ops)
  billed_op.set_op(op)

def _add_billed_op_to_trace ( trace , num_ops , op ) : if num_ops : billed_op = trace . add_billed_ops ( ) billed_op . set_num_ops ( num_ops ) billed_op . set_op ( op )
adds a billed op to the given trace .