AbstractAbstract ReadonlydescriptionA short description of what the plugin does.
Abstract ReadonlynameA unique, human-readable name of the plugin.
ReadonlytypeThe type of the plugin, determining when and for what purpose it is applied during the analysis.
Abstract ReadonlyversionThe version of the plugin, ideally following semver.
StaticdefaultReturns a default/dummy implementation to be used when no plugin of this type is registered or triggered.
Protected AbstractprocessRun the plugin with the given context and arguments.
Base class for gas plugins, queried on-demand by FlowrAnalyzerGasContext.checkGas.
Override process to provide a custom resource-pressure assessment for a feature key. Return
undefinedto defer to the built-in memory and time checks. Multiple Gas plugins are combined by taking the maximum (GasLevel) returned by any plugin or by the built-in checks.A gas plugin is the right place to add domain-specific checks (e.g., CPU, I/O, quota limits) or to override default behavior for testing by returning a hardcoded level.
See