VS Code Extensions
Go Heap Escape Highlighter

Go Heap Escape Highlighter

by RomanGrudzinski

Highlights heap escapes, inlining calls, and devirtualizations from go build -gcflags=-m

Downloads

20

Rating

5.0 / 5 (1)

Version

1.0.4

Last updated

May 13, 2026

Highlights lines reported by go build -gcflags=-m:

  • Orange — variable escapes to heap
  • Blue — inlining call
  • Green — devirtualized interface call

highlight-hover.png

Analysis runs automatically on save. Use Go: Analyze Heap Escapes from the Command Palette to run manually.

Settings

Setting Default Description
goEscape.autoAnalyze true Run analysis automatically on save
goEscape.enableEscapeHighlight true Show heap escape lines
goEscape.enableInlineHighlight true Show inlining lines
goEscape.enableDevirtHighlight true Show devirtualization lines
goEscape.escapeColor rgba(255,160,0,0.04) Heap escape highlight color
goEscape.inlineColor rgba(100,180,255,0.04) Inlining highlight color
goEscape.devirtColor rgba(100,220,120,0.04) Devirtualization highlight color
logo.png

Related extensions