arXiv:2610.02121cs.AROct 2026

Manuscript Offprint

arXiv:2610.02121

Catscan: Visualizing Pipelines of CPU Performance Simulation

Aaron Lindsay, Nicholas Kelly, Scott Witscher, Mahesh Madhav

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Aaron Lindsay, Nicholas Kelly, Scott Witscher, Mahesh Madhav Ampere Computing, Raleigh, NC and Portland, OR

Abstract—Processor pipeline visualization tools are routine inside industry CPU teams, but few of them are described or released publicly. As a result, students, researchers, and other practitioners rarely see the tooling that processor architects use to debug performance before silicon. This paper describes two pieces of Ampere Computing's performance-analysis infrastructure that we have released to the community as open source: event streams, a simulator-output format, and Catscan, an interactive viewer built around that format. Event streams record microarchitectural activity as typed events connected by transaction relationships, so a user can move between a symptom and the instruction, uop, or memory transaction that explains it. Catscan uses that structure to support resource- and transaction-oriented views, persistent highlighting, domain-specific search, comparative trace synchronization, and other workflows used during product development. In this paper we report the design choices that survived production use, the limitations we encountered, and the lessons we think are useful for future microarchitectural visualization tools.

Figure

Fig. 1: Catscan debugging session demonstrating “row pinning” of stall frequencies and other critical event bandwidths (represented by multilevel bars at the top) along with other detailed events in a resource-oriented view. In this case, the backend pipeline is stalled, waiting on a series of L1 cache misses to return data (see the demand misses m\boxed{m}, and prefetch misses M\boxed{M}.)

I. INTRODUCTION

The relentless increase in CPU complexity, driven by features like out-of-order execution and deep speculation, has made pre-silicon performance analysis and bug diagnosis a formidable challenge. Microarchitectural simulators are indispensable tools in the domain of design space exploration, capable of executing complex workloads and producing a “dazzling variety of statistics” [1]. These statistics, such as Instructions Per Cycle (IPC) or cache miss rates, are effective at identifying that a performance problem exists. However, they often lack the diagnostic fidelity required to pinpoint why it exists, leaving architects to manually sift through text-based logs or spreadsheets of performance counter data.

To bridge this gap between problem detection and root-cause analysis, the field has long turned to execution trace visualization. Early academic and industrial efforts produced tools that could render “waterfall” or pipeline diagrams, offering a graphical view of an instruction’s journey through the machine’s stages over time [1]-[3], or the contents of buffers as instructions move through [4]. This concept evolved into more generalized tools like the Graphical Pipeline Viewer (GPV), which introduced the idea of a generic, text-based “pipetrace stream” to remain portable across different simulator backends [5]. This early work established the core value proposition that a visual representation of the pipeline is more intuitive for analysis than raw numbers or text logs.

Visualization techniques were significantly advanced by the work of Stolte et al. with their visualization system for superscalar processors [6], [7] which was built on a philosophy of providing an “overview-plus-detail” display. This allowed a user to start with a high-level timeline view of pipeline performance, identify regions of poor instruction throughput, and then “drill down” to a focused region for in-depth analysis. Their visualization took the form of an animated, cycle-by-cycle reenactment of the pipeline, showing precisely how instructions were reordered and executed, and how functional units were being utilized. This approach proved highly effective, enabling the discovery of subtle timing bugs in simulators that were completely obscured by aggregate statistics. Their body of work solidified the principles of modern CPU pipeline visualization: interactivity, multi-scale views, and the ability to connect low-level events back to high-level performance characteristics [8].

However, a common thread unites this foundational work. From the simple stream of GPV [5] to the sophisticated overview-plus-detail displays of Rivet [7], the input data is fundamentally treated as a time-ordered, flat stream of events. While powerful, this representation loses the inherent causal and hierarchical relationships that define microarchitectural execution. A pipeline stall is not merely an event that occurs at a point in time; it is the consequence of a preceding event, such as a cache miss, which itself was caused by a specific micro-operation belonging to a particular instruction. However, a flat stream forces the user to mentally reconstruct this critical context during a debug session.

We argue that the structure of the trace data itself is a first-class design problem that has been underexplored. This paper shares our philosophy for representing microarchitectural execution not as a stream of standalone events, but as a hierarchical causal graph. In our model, execution is captured as a directed acyclic graph of transactions. For example, a “fetch” transaction spawns a set of “instruction” transactions. Each “instruction” may in turn spawn multiple “micro-op” (uop) transactions. A “uop,” upon execution, may then spawn dependent transactions, such as a “TLB lookup” or a “memory access.” This graph-based representation preserves the crucial parent-child and sibling relationships between operations. The individual events, such as buffer_allocate, cache_lookup, or data_bypass, belong to one of these transactions. The resulting data format is a rich, self-contained description of what happened as well as the structural and causal how and why.

Building on this data representation, we present Catscan, our interactive visualization tool designed specifically to leverage this hierarchical structure. Unlike historical tools that primarily allow for filtering by time or event type, Catscan allows an architect to explore more efficiently by using the causal chain. For example, a user can select a high-level transaction, such as a long-latency load instruction, and instantly highlight its entire subgraph of dependent uops and memory operations. This provides an intuitive and powerful debugging workflow that mirrors an architect’s mental model of the machine. An example screenshot is shown in Figure 1.

What further sets this work apart is its foundation in industrial practice. While the prior art represents invaluable academic exploration, those are not the tools used in industry, and their source code is largely unavailable. In contrast, Catscan and event streams have been used in the exploration, design, and performance verification of multiple generations of Ampere’s CPU products [9]–[11]. This paper reports the parts of that infrastructure that proved useful enough to release as open source. We have open-sourced both the hierarchical trace format specification and the Catscan visualization tool to give academic and industrial users a reusable framework for microarchitectural performance analysis, extensible for both processor design and computer architecture education.

This paper does not claim that pipeline visualization is new. Instead, it describes the parts of our infrastructure that proved useful enough to keep, extend, and release as open source. We make three main contributions:

▶ We describe event streams, a compact and extensible format for recording typed microarchitectural events and transaction relationships.

▶ We describe Catscan, a terminal-based visualization tool that uses event streams for resource views, transaction views, persistent highlighting, domain-specific search, and comparative trace synchronization.

▶ We report design lessons from using these tools in an industrial CPU development flow, including where the approach works well and where it remains limited.

Artifact availability. The open-source artifacts supporting this paper are available in two public repositories. The Catscan repository contains the interactive event-stream viewer [12]. The Performance Streams repository contains the event-stream schema/specification, Python and C++ read/write libraries, supporting command-line tools, examples, and documentation for processing event streams [13].

FieldDescription
kindKind of definition (event or value)
idID of definition
nameName of definition
descriptionDescription for definition
enumeration_idEnumeration ID (if is enumeration)

TABLE I: Definition schema

FieldDescription
definition_idEvent definition
idUnique ID of event
timeTime event occurred (normally picoseconds)
valuesMap of data values associated with event

TABLE II: Event schema

References (37)