File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1- # License . to the Apache Software Foundation (ASF) under one
1+ # Licensed to the Apache Software Foundation (ASF) under one
22# or more contributor license agreements. See the NOTICE file
33# distributed with this work for additional information
44# regarding copyright ownership. The ASF licenses this file
2222"""
2323from . import vm , _vm
2424
25+
2526def enabled ():
2627 """Whether vm profiler is enabled."""
2728 return hasattr (_vm , "_VirtualMachineDebug" )
2829
30+
2931class VirtualMachineProfiler (vm .VirtualMachine ):
3032 """Relay profile VM runtime."""
33+
3134 def __init__ (self , mod ):
3235 super (VirtualMachineProfiler , self ).__init__ (mod )
3336 m = mod .module if isinstance (mod , vm .Executable ) else mod
Original file line number Diff line number Diff line change 1- # License . to the Apache Software Foundation (ASF) under one
1+ # Licensed to the Apache Software Foundation (ASF) under one
22# or more contributor license agreements. See the NOTICE file
33# distributed with this work for additional information
44# regarding copyright ownership. The ASF licenses this file
@@ -473,6 +473,7 @@ class VMExecutor(Executor):
473473 target : :py:class:`Target`
474474 The target option to build the function.
475475 """
476+
476477 def __init__ (self , mod , ctx , target ):
477478 if mod is None :
478479 raise RuntimeError ("Must provide module to get VM executor." )
You can’t perform that action at this time.
0 commit comments