H3 Flight Recorder Start (alpha):
The H3RecordStart node acts as the initial part of a flight recorder system designed to monitor and log the performance of computationally expensive nodes within a rendering pipeline. Its primary function is to reset the torch peak counters, preparing the system to accurately record performance metrics. This node is intended to be placed before a resource-intensive node, with its counterpart, H3RecordStop, positioned after. Together, they capture and append a single line of JSON data per render, detailing work units, resolution, model tags, seconds per step, and torch peak bytes. This data is crucial for calibrating the timeline's price meter, providing insights into resource usage without transmitting any data externally, ensuring privacy and local data handling.
H3 Flight Recorder Start (alpha) Input Parameters:
anything
This parameter accepts any data type and serves as a placeholder to ensure the node can be integrated seamlessly into various workflows. It does not directly impact the node's primary function of recording performance metrics.
key
The key parameter is a string that defaults to "default". It is used to uniquely identify the recording session, allowing multiple sessions to be distinguished from one another. This is particularly useful when running concurrent or sequential tasks that require separate performance logs.
log_path
The log_path is an optional string parameter that defaults to an empty string. It specifies the path to ComfyUI's log file, if available. The node notes the size of this log file at the start of the session, ensuring that only the lines written during the current run are considered for streaming flags. This helps in maintaining accurate and relevant log data.
H3 Flight Recorder Start (alpha) Output Parameters:
anything
The output parameter anything mirrors the input parameter of the same name. It ensures that the data passed into the node is returned unchanged, allowing the node to be inserted into a workflow without disrupting the data flow. This design maintains the integrity of the data while enabling performance monitoring.
H3 Flight Recorder Start (alpha) Usage Tips:
- Place the
H3RecordStartnode immediately before any node that is expected to consume significant computational resources to ensure accurate performance logging. - Use a unique
keyfor each recording session to easily differentiate between logs from different tasks or runs. - If you have a ComfyUI log file, specify its path in the
log_pathparameter to enhance the accuracy of the recorded data by filtering out irrelevant log entries.
H3 Flight Recorder Start (alpha) Common Errors and Solutions:
Missing log file
- Explanation: The specified log file path in
log_pathdoes not exist or is inaccessible. - Solution: Ensure that the path provided in
log_pathis correct and that the file is accessible. Check for typos or permission issues.
Invalid key format
- Explanation: The
keyparameter contains unsupported characters or formats. - Solution: Use a simple alphanumeric string for the
keyparameter to avoid format issues. Avoid using special characters or spaces.
