---
title: "Unlocking TPU performance: Deep kernel profiling with XProf"
url: https://daily.dev/posts/unlocking-tpu-performance-deep-kernel-profiling-with-xprof-lghkq2da7
source_url: http://opensource.googleblog.com/2026/06/unlocking-tpu-performance-deep-kernel-profiling-with-xprof.html
type: article
source: "Google Open Source Blog"
published: 2026-06-08T19:06:14.061Z
updated: 2026-06-08T19:19:22.278Z
reading_time: 7
upvotes: 0
comments: 0
language: 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.

# Unlocking TPU performance: Deep kernel profiling with XProf

**[Google Open Source Blog](https://daily.dev/sources/googleoss)** · 7 min read · 0 upvotes · 0 comments

## Summary

XProf introduces a Kernel Profiling suite for deep hardware-level debugging of custom TPU kernels written with Pallas, Mosaic, and Triton. It addresses the 'optimization blind spot' problem where traditional profilers treat custom compilation paths as opaque blocks. Key capabilities include: HLO Graph and MLIR inspection via debug flags to see how high-level code is compiled; Low-Level Operations (LLO) analysis providing cycle-level visibility into MXU, ALU, and memory unit utilization; and runtime performance counter sampling (available on TPU v7/Ironwood) that captures empirical hardware telemetry rather than relying on static cost models. A concrete example shows how triple buffering to overlap HBM memory loads with MXU compute reduced a matmul kernel runtime from 125.5µs to 88µs (~30% gain). XProf also introduces an External Event-Triggered profiling mode for sub-microsecond capture latency, supporting up to 28 hardware counters per core across four SparseCores.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <http://opensource.googleblog.com/2026/06/unlocking-tpu-performance-deep-kernel-profiling-with-xprof.html>

## Similar posts on daily.dev

- [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

---

[View this post on daily.dev](https://daily.dev/posts/unlocking-tpu-performance-deep-kernel-profiling-with-xprof-lghkq2da7)
