Analyze Log
This section guides you through the process of visualizing your simulation logs, from creating a workspace to inspecting detailed instruction metrics.
Step 1: Create a Data Block
When you first open Chronos, the dashboard is empty. You need to create a container for your logs.
- Navigate to the top-right corner of the dashboard.
- Click the + Add button.
- Type in a label for this data.
- A new "Data Block" will appear in the main workspace. This block represents a single simulation run or a specific trace segment.
Step 2: Input Simulation Logs
Next, feed your raw simulation logs into the Data Block.
- Locate the header of your new Data Block.
- Click the Input ChronosLog button.
- A text input field will expand.
- Paste your formatted logs (starting with [ChronosLog]) into this area.
Step 3: Generate Visualization
Once the logs are pasted:
- Click the Analyze button below the text area.
- Chronos will instantly parse the data. The timeline (Gantt chart) will be rendered, displaying the execution flow of your custom instructions.
Interactive Features
Zoom & Navigation
You can adjust the time scale to view the entire execution flow or focus on specific clock cycles.
- Zoom Controls: Use the zoom buttons (or slider) to change the pixel-per-cycle ratio.
- Zoom In: To see individual cycle gaps and short stalls.
- Zoom Out: To get a high-level overview of long-running processes.
Inspector Panel (Detailed Metrics)
To analyze the performance of a specific instruction:
- Click on any colored block (Instruction Ribbon) within the timeline.
- The Inspector Panel will open (typically on the bottom half).
- Here you can view critical metrics such as:
- Overall Cycles: Total duration of the instruction.
- Efficiency Rate: The ratio of active execution (EXEC) versus memory stalls (STALL).
- Context: Cycle gaps before and after the instruction (Software Overhead).
- Raw Data: Detailed attributes like memory addresses or burst sizes.
Comparing Multiple Traces
Chronos supports displaying multiple time charts simultaneously. This is ideal for comparing performance before and after optimizations (e.g., "v1" vs "v2") or analyzing different simulation scenarios side-by-side.
- While a timeline is already displayed, click the + Add button again.
- A new Data Block will appear below the existing one.
- Input a different set of logs into the new block and click Analyze.
- You can now visually compare the execution flows, latencies, and gaps between the two traces on the same screen.
You're All Set! 😄
You've completed the tutorial! Now, start analyzing your real data on the Dashboard. We welcome any feedback or suggestions via the Contact page, and contributions on GitHub. (Remember, Chronos is fully open-source!)