mirror of https://github.com/hpcaitech/ColossalAI
21 lines
342 B
Python
21 lines
342 B
Python
|
from abc import ABC, abstractmethod
|
||
|
|
||
|
|
||
|
class ProfilerExtension(ABC):
|
||
|
|
||
|
@abstractmethod
|
||
|
def prepare_trace(self):
|
||
|
pass
|
||
|
|
||
|
@abstractmethod
|
||
|
def start_trace(self):
|
||
|
pass
|
||
|
|
||
|
@abstractmethod
|
||
|
def stop_trace(self):
|
||
|
pass
|
||
|
|
||
|
@abstractmethod
|
||
|
def extend_chrome_trace(self, trace: dict) -> dict:
|
||
|
pass
|