mirror of https://github.com/hpcaitech/ColossalAI
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
341 B
20 lines
341 B
3 years ago
|
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
|