-
Notifications
You must be signed in to change notification settings - Fork 251
Open
Description
Hello, since 5.0.0 there seem to be missing __init__
arguments for the preprocessors
and processor_options
for the HTMLRenderer
. Because of this, the instance of JSONForHTMLRenderer
that HTMLRenderer
creates cannot have these attributes, and because of that there is no way to shorten the output .html
file. This is particularly an issue when the output file has 600MB or more when profiling a particularly large block of code.
Could these options be added back into the HTMLRenderer
?
HTMLRenderer
is able to have these options if I add these arguments to the __init__
method:
def __init__(
...
preprocessors: ProcessorList = [],
processor_options: dict[str, Any] | None = None,
):
...
self.preprocessors: ProcessorList = preprocessors
self.processor_options: dict[str, Any] | None = processor_options
and when I add this to the render
method:
def render(self, session: Session):
...
json_renderer.processor_options = self.processor_options
...
Metadata
Metadata
Assignees
Labels
No labels