File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
ddtrace/profiling/collector Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 99from typing import Type
1010from typing import cast
1111
12+ from typing_extensions import override
13+
1214
1315try :
1416 from ddtrace .profiling .collector import _memalloc
2527LOG = logging .getLogger (__name__ )
2628
2729
28- class MemoryCollector :
30+ class MemoryCollector ( collector . Collector ) :
2931 """Memory allocation collector."""
3032
3133 def __init__ (
@@ -152,3 +154,11 @@ def snapshot_and_parse_pprof(self, output_filename: str) -> Any:
152154 )
153155
154156 return pprof_utils .parse_newest_profile (output_filename )
157+
158+ @override
159+ def _start_service (self , * args : Any , ** kwargs : Any ) -> None :
160+ raise NotImplementedError ("MemoryCollector cannot be started" )
161+
162+ @override
163+ def _stop_service (self , * args : Any , ** kwargs : Any ) -> None :
164+ raise NotImplementedError ("MemoryCollector cannot be stopped" )
You can’t perform that action at this time.
0 commit comments