MCPcopy Index your code
hub / github.com/nodejs/node / __enter__

Method __enter__

deps/v8/tools/run_perf.py:1053–1060  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1051 self.governor = governor
1052
1053 def __enter__(self):
1054 if self.disable_aslr:
1055 self.aslr_backup = CustomMachineConfiguration.GetASLR()
1056 CustomMachineConfiguration.SetASLR(0)
1057 if self.governor is not None:
1058 self.governor_backup = CustomMachineConfiguration.GetCPUGovernor()
1059 CustomMachineConfiguration.SetCPUGovernor(self.governor)
1060 return self
1061
1062 def __exit__(self, type, value, traceback):
1063 if self.aslr_backup is not None:

Callers

nothing calls this directly

Calls 4

GetASLRMethod · 0.80
SetASLRMethod · 0.80
GetCPUGovernorMethod · 0.80
SetCPUGovernorMethod · 0.80

Tested by

no test coverage detected