15d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)# Copyright 2014 The Chromium Authors. All rights reserved.
25d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)# Use of this source code is governed by a BSD-style license that can be
35d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)# found in the LICENSE file.
45d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
5f8ee788a64d60abd8f2d742a5fdedde054ecd910Torne (Richard Coles)import telemetry.timeline.event as event
65d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
76e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)
85d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)class FlowEvent(event.TimelineEvent):
95d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)  ''' A FlowEvent represents an interval of time plus parameters associated
105d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)  with that interval.
115d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)  '''
125d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)  def __init__(self, category, event_id, name, start, args=None):
135d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)    super(FlowEvent, self).__init__(
145d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)        category, name, start, duration=0, args=args)
155d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)    self.event_id = event_id
16