gperf_heap
gperf_heap
¤
Classes:
Name | Description |
---|---|
GperfHeapEnvironment |
GperfHeapEnvironment is a class that sets up and manages the execution environment for gperf heap profiling. |
panther.plugins.environments.execution_environment.gperf_heap.gperf_heap.GperfHeapEnvironment
¤
GperfHeapEnvironment(env_config_to_test: GperfHeapConfig, output_dir: str, env_type: str, env_sub_type: str, event_manager: EventManager)
Bases: IExecutionEnvironment
, ABC
GperfHeapEnvironment is a class that sets up and manages the execution environment for gperf heap profiling.
Attributes:
Name | Type | Description |
---|---|---|
global_config |
GlobalConfig
|
The global configuration for the environment. |
env_config_to_test |
GperfHeapConfig
|
The specific configuration for the environment to test. |
services_managers |
list[IServiceManager]
|
List of service managers. |
test_config |
TestConfig
|
The test configuration. |
plugin_loader |
PluginLoader
|
The plugin loader. |
logger |
Logger
|
Logger for debugging and information. |
Methods:
Name | Description |
---|---|
setup_environment |
list[IServiceManager], test_config: TestConfig, global_config: GlobalConfig, timestamp: str, plugin_loader: PluginLoader): Sets up the environment with the provided service managers, test configuration, global configuration, timestamp, and plugin loader. |
to_command |
str) -> str: Generates the gperf command based on the configuration. |
__repr__ |
Returns a string representation of the GperfHeapEnvironment instance. |
Methods:
Name | Description |
---|---|
is_network_environment |
Returns True if the plugin is an network environment. |
setup_environment |
|
teardown_environment |
Tears down the environment after experiments are completed. |
to_command |
Generate the gperf command based on the configuration. |
Source code in panther/plugins/environments/execution_environment/gperf_heap/gperf_heap.py
43 44 45 46 47 48 49 50 51 52 53 54 55 |
|
is_network_environment
¤
is_network_environment()
Returns True if the plugin is an network environment.
Source code in panther/plugins/environments/execution_environment/execution_environment_interface.py
52 53 54 55 56 |
|
setup_environment
¤
setup_environment(services_managers: list[IServiceManager], test_config: TestConfig, global_config: GlobalConfig, timestamp: str, plugin_loader: PluginLoader)
Source code in panther/plugins/environments/execution_environment/gperf_heap/gperf_heap.py
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
|
teardown_environment
¤
teardown_environment()
Tears down the environment after experiments are completed.
Source code in panther/plugins/environments/execution_environment/execution_environment_interface.py
72 73 74 75 76 |
|
to_command
¤
to_command(service_name: str) -> str
Generate the gperf command based on the configuration.
Source code in panther/plugins/environments/execution_environment/gperf_heap/gperf_heap.py
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 |
|