Skip to content

Releases: 1rhino2/go-memory-visualizer

v0.3.0 - Cache Line Visualization & Workspace Analyzer

03 Dec 11:48

Choose a tag to compare

What's New in v0.3.0

Cache Line Visualization

  • See which 64-byte cache line each struct field occupies
  • Warnings when fields cross cache line boundaries (performance issue)
  • Identify false sharing risks in concurrent code
  • Cache line breakdown in memory layout panel

Workspace Memory Analyzer

  • New command: \Go: Analyze Workspace Memory Layout\
  • Scans all Go files for optimization opportunities
  • Ranks structs by potential memory savings
  • Highlights cache line boundary issues across codebase

Enhanced UI

  • Inline annotations now show cache line number [L0], [L1], etc.
  • Fields crossing cache lines highlighted with distinct warning style
  • Hover tooltips explain cache line crossing implications
  • Memory layout panel includes cache line breakdown table

New Example

  • Added \cache-lines.go\ demonstrating cache line issues

Full Changelog: v0.2.2...v0.3.0

v0.2.1 - Bugfix Release

26 Nov 17:28

Choose a tag to compare

Pre-release

Fixed

  • Added error handling for file export operations
  • Fixed deprecated workspace.rootPath usage
  • Export success message no longer exposes full file path

Full Changelog: v0.2.0...v0.2.1

v0.2.0 Pre-Release - Nested Structs & Export

26 Nov 10:54

Choose a tag to compare

v0.2.0 Pre-Release

New Features

  • Nested struct memory analysis with recursive calculation
  • Embedded field detection and layout computation
  • Export layouts to JSON, Markdown, and CSV formats
  • GitHub Pages site with interactive memory calculator
  • Real-time struct optimization examples

Improvements

  • Two-pass parsing for accurate struct resolution
  • Enhanced type registry for custom struct tracking
  • Multi-architecture support (amd64, arm64, 386)
  • Comprehensive SEO optimization

Website

Live Site: https://1rhino2.github.io/go-memory-visualizer/

Installation

Download the VSIX below or install from VS Code Marketplace.

Full changelog: https://github.com/1rhino2/go-memory-visualizer/blob/master/CHANGELOG.md

v0.1.0 - Initial Release

23 Nov 16:15

Choose a tag to compare

Pre-release

Initial public release of Go Memory Layout Visualizer

Features

  • Real-time visualization of Go struct memory layout
  • Inline annotations showing byte offsets, sizes, and padding
  • One-click struct optimization to minimize padding
  • Multi-architecture support (amd64, arm64, 386)
  • Cache line boundary detection
  • Visual feedback for excessive padding

Installation

Install from VS Code Marketplace: https://marketplace.visualstudio.com/items?itemName=RhinoSoftware.go-memory-visualizer