1a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)# Copyright 2014 The Chromium Authors. All rights reserved. 2a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)# Use of this source code is governed by a BSD-style license that can be 3a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)# found in the LICENSE file. 4a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles) 5a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)class TimelineRecorder(object): 6a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles) """Interface for classes that can record timeline raw events.""" 7a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles) def Start(self): 8a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles) """Starts recording.""" 9a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles) raise NotImplementedError 10a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles) 11a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles) def Stop(self): 12a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles) """Stops recording and returns timeline event data.""" 13a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles) raise NotImplementedError 14