oracletrace
oracletrace copied to clipboard
Add JSON export option for profiling report
Description:
OracleTrace currently outputs profiling results as terminal tables and a call tree. However, there is no way to export the profiling data in a structured format like JSON. Adding JSON export would allow users to integrate OracleTrace with dashboards, CI pipelines, and other automated tools.
Tasks:
- Add a CLI argument (e.g., --output-json
) to enable JSON export. - Serialize profiling data (functions, timings, call counts, call tree) into a JSON-friendly structure.
- Write unit tests to ensure the JSON output correctly reflects the profiling results.
- Update the README with documentation and examples of using the JSON export option.
Why this is beginner-friendly:
- Involves simple serialization logic.
- Offers an easy entry point into the project’s internal data structures.
- Improves usability without requiring complex architectural changes.
Done!