<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/google-adds-cycle-level-kernel-profiling-to-xprof-mak8uavci" -->

---
title: Google Adds Cycle-Level Kernel Profiling to XProf
description: Google has added a Kernel Profiling suite to XProf, its open-source profiler for TPU workloads, allowing developers to see cycle-level details inside custom...
canonical: https://daily.dev/posts/google-adds-cycle-level-kernel-profiling-to-xprof-mak8uavci
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Google Adds Cycle-Level Kernel Profiling to XProf | daily.dev
og:description: Google has added a Kernel Profiling suite to XProf, its open-source profiler for TPU workloads, allowing developers to see cycle-level details inside custom...
og:url: https://daily.dev/posts/google-adds-cycle-level-kernel-profiling-to-xprof-mak8uavci
og:image: https://api.daily.dev/og/posts/mAK8UavcI.png
og:image:alt: Google Adds Cycle-Level Kernel Profiling to XProf
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Adds Cycle-Level Kernel Profiling to XProf

**[InfoQ](https://daily.dev/sources/infoq)** · 3 min read · 0 upvotes · 0 comments

## Summary

Google has added a Kernel Profiling suite to XProf, its open-source profiler for TPU workloads, allowing developers to see cycle-level details inside custom Pallas kernels that previously appeared as opaque blocks. On TPU v7 (Ironwood), the suite samples hardware performance counters at runtime and offers three inspection levels: compiler-level MLIR text, trace-level low-level operation tracks, and runtime hardware counter telemetry with a new sub-microsecond external event-triggered mode. In a demo tiled matmul kernel, Google diagnosed a memory stall and cut kernel time from 125.5µs to 88µs (about 30%) by adding triple buffering. The suite also introduces a Perf Counters View exposing over 16,000 raw counters and establishes a hierarchy of trust favoring register-level ground truth over XLA cost-model estimates for custom kernels. Coverage is documented for TPU v7 only, so earlier TPU generations may not have the same support.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.infoq.com/news/2026/09/google-tpu-xprof>

## Questions this post answers

### How do I get cycle-level profiling data for custom Pallas kernels on TPU v7?

Use the new Kernel Profiling suite added to XProf, Google's open-source TPU profiler. Enable compiler inspection with the flags --xla_enable_custom_call_region_trace=true and --xla_xprof_register_llo_debug_info=true, which surfaces a Custom Call Text panel showing lowered MLIR. The Trace Viewer then displays per-cycle low-level operation data for the MXU, ALUs, and other units on TPU v7 (Ironwood).

_daily.dev surfaces tooling updates like this for engineers tuning custom TPU kernel performance._

### Why does XLA report full MXU utilization on a custom Pallas kernel that is actually stalled waiting on memory?

Kernels built with Pallas, Mosaic, or Triton skip standard XLA compiler passes, which distorts the static cost models XLA uses to estimate metrics like optimal FLOPs and goodput efficiency. Because static analysis ignores time, it can mark an MXU instruction block as fully utilized even while the unit sits idle waiting on HBM. Register-level hardware counters, not XLA-derived estimates, should be treated as ground truth for these custom kernels.

_Engineers debugging misleading utilization numbers can track profiling fixes like this via daily.dev._

### What kind of speedup can triple buffering give a memory-bound TPU matmul kernel?

In a single Google-authored demo tiled matmul kernel on TPU v7, adding triple buffering to overlap HBM loads with MXU compute cut kernel time from 125.5µs to 88µs, roughly a 30% improvement, by reducing sync_wait stall events. This figure comes from one demo kernel rather than a broad benchmark, so it illustrates the profiling workflow rather than a guaranteed gain elsewhere.

_daily.dev helps engineers comparing TPU kernel optimization techniques stay on top of new case studies._

## Similar posts on daily.dev

- [Unlocking TPU performance: Deep kernel profiling with XProf](https://daily.dev/posts/unlocking-tpu-performance-deep-kernel-profiling-with-xprof-lghkq2da7) · Google Open Source Blog · 0 upvotes · 0 comments
- [Advanced TPU optimization with XProf: Continuous profiling, utilization insights, and LLO bundles](https://daily.dev/posts/advanced-tpu-optimization-with-xprof-continuous-profiling-utilization-insights-and-llo-bundles-3jzmctepx) · Google Open Source Blog · 0 upvotes · 0 comments
- [How to use Google microbenchmarks for evaluating TPU performance](https://daily.dev/posts/how-to-use-google-microbenchmarks-for-evaluating-tpu-performance-4yshfjmo7) · Google Developers · 0 upvotes · 0 comments
- [One Giant Leap: 95% Less Sampling Cost](https://daily.dev/posts/one-giant-leap-95-less-sampling-cost-knpvkaex9) · Inside Java · 0 upvotes · 0 comments

---

Tags: [#performance](https://daily.dev/tags/performance)

[View this post on daily.dev](https://daily.dev/posts/google-adds-cycle-level-kernel-profiling-to-xprof-mak8uavci)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Google Adds Cycle-Level Kernel Profiling to XProf","url":"https://daily.dev/posts/google-adds-cycle-level-kernel-profiling-to-xprof-mak8uavci","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/google-adds-cycle-level-kernel-profiling-to-xprof-mak8uavci"},"datePublished":"2026-09-23T10:04:39.917Z","dateModified":"2026-09-23T10:05:05.600Z","description":"Google has added a Kernel Profiling suite to XProf, its open-source profiler for TPU workloads, allowing developers to see cycle-level details inside custom...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/7e6395093a4b222b7e45c0d168d9bb28?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/7e6395093a4b222b7e45c0d168d9bb28?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"InfoQ","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"InfoQ","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/afc3bced3e1e4b188dd9127017a60e0c","url":"https://daily.dev/sources/infoq"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/google-adds-cycle-level-kernel-profiling-to-xprof-mak8uavci","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"performance","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"InfoQ","item":"https://daily.dev/sources/infoq"},{"@type":"ListItem","position":3,"name":"Google Adds Cycle-Level Kernel Profiling to XProf"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/google-adds-cycle-level-kernel-profiling-to-xprof-mak8uavci#faq","mainEntity":[{"@type":"Question","name":"How do I get cycle-level profiling data for custom Pallas kernels on TPU v7?","acceptedAnswer":{"@type":"Answer","text":"Use the new Kernel Profiling suite added to XProf, Google's open-source TPU profiler. Enable compiler inspection with the flags --xla_enable_custom_call_region_trace=true and --xla_xprof_register_llo_debug_info=true, which surfaces a Custom Call Text panel showing lowered MLIR. The Trace Viewer then displays per-cycle low-level operation data for the MXU, ALUs, and other units on TPU v7 (Ironwood). daily.dev surfaces tooling updates like this for engineers tuning custom TPU kernel performance."}},{"@type":"Question","name":"Why does XLA report full MXU utilization on a custom Pallas kernel that is actually stalled waiting on memory?","acceptedAnswer":{"@type":"Answer","text":"Kernels built with Pallas, Mosaic, or Triton skip standard XLA compiler passes, which distorts the static cost models XLA uses to estimate metrics like optimal FLOPs and goodput efficiency. Because static analysis ignores time, it can mark an MXU instruction block as fully utilized even while the unit sits idle waiting on HBM. Register-level hardware counters, not XLA-derived estimates, should be treated as ground truth for these custom kernels. Engineers debugging misleading utilization numbers can track profiling fixes like this via daily.dev."}},{"@type":"Question","name":"What kind of speedup can triple buffering give a memory-bound TPU matmul kernel?","acceptedAnswer":{"@type":"Answer","text":"In a single Google-authored demo tiled matmul kernel on TPU v7, adding triple buffering to overlap HBM loads with MXU compute cut kernel time from 125.5µs to 88µs, roughly a 30% improvement, by reducing sync_wait stall events. This figure comes from one demo kernel rather than a broad benchmark, so it illustrates the profiling workflow rather than a guaranteed gain elsewhere. daily.dev helps engineers comparing TPU kernel optimization techniques stay on top of new case studies."}}]}
```

