Skip to content

Commit

Permalink
Merge pull request #10 from gfx/decaffe
Browse files Browse the repository at this point in the history
Decaffe
  • Loading branch information
dewski authored Sep 12, 2017
2 parents 0a68e1f + ae192bf commit f954af8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
12 changes: 0 additions & 12 deletions app/assets/javascripts/peek/views/dalli.coffee

This file was deleted.

14 changes: 14 additions & 0 deletions app/assets/javascripts/peek/views/dalli.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
$(document).on('peek:render', function(event, requestId, data) {
let title = [];
title.push(`Reads: ${data.context.dalli.reads}`);
title.push(`Misses: ${data.context.dalli.misses}`);
title.push(`Writes: ${data.context.dalli.writes}`);
title.push(`Other: ${data.context.dalli.others}`);

return $('#peek-dalli-tooltip')
.attr('title', title.join('<br>'))
.tipsy({
html: true,
gravity: $.fn.tipsy.autoNS
});
});

0 comments on commit f954af8

Please sign in to comment.