New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Diagnostic cache viewer #798

merged 14 commits into from May 1, 2018


None yet
1 participant

smashwilson commented May 14, 2017

Track the usage of cache data. Add a pane item that displays the current cache contents, live, and allows selective or bulk cache flushing. Totally low-priority tinkering from me.

Here's what I've got so far, pardon the Developer Art 馃帹:

screen shot 2017-05-13 at 10 01 57 pm

  • Give the Cache an event emitter and an onDidUpdate event.
  • Store extra cache entry metadata: age and hit count.
  • Display the cache data in a PaneItem triggered with github:show-cache-diagnostics.
  • Sort cache entries within the table: alphabetic by name, oldest first, newest first, most hits, fewest hits.
  • Convert the cache key column to buttons that evict that cache entry on click.
  • Add a button to flush the entire cache at once.
  • Truncate cache entry values at some reasonable maximum size.

smashwilson added some commits May 13, 2017


This comment has been minimized.


smashwilson commented May 1, 2018

Eh this might be handy.

@smashwilson smashwilson merged commit e57e33f into master May 1, 2018

3 checks passed

ci/circleci Your tests passed on CircleCI!
continuous-integration/appveyor/pr AppVeyor build succeeded
continuous-integration/travis-ci/pr The Travis CI build passed

@smashwilson smashwilson deleted the aw-cache-pane branch May 1, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment