def GetTimestampEventName(process):
  """ Returns the name of the events used to count frame timestamps. """
  event_name = 'BenchmarkInstrumentation::DisplayRenderingStats'
  for event in process.IterAllSlicesOfName(event_name):
    if 'data' in event.args and event.args['data']['frame_count'] == 1:
      return event_name
  return 'BenchmarkInstrumentation::ImplThreadRenderingStats'