Skip to content

Commit

Permalink
minor documentation fix; gemspec missing haml; fix JS when data.list …
Browse files Browse the repository at this point in the history
…is blank
  • Loading branch information
choonkeat committed May 20, 2011
1 parent 79b6648 commit 98707ac
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ config.middleware.use Memprof::Tracer
```

The `Memprof::Tracer` middleware will record JSON stats about each
incoming request to `/tmp/memprof-tracer-PID.json`
incoming request to `/tmp/memprof_tracer-PID.json`

## analyzing data

```
bundle install
./bin/hotspots /tmp/memprof-tracer-*.json hotspots-report/
./bin/hotspots /tmp/memprof_tracer-*.json hotspots-report/
open hotspots-report/index.html
```

Expand Down
2 changes: 2 additions & 0 deletions app/src/app.haml
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@
:javascript
$('.sqlNums').bind('redraw', function(){
var data = DATA.sqlNums();
if (! data.list[0]) return;
$(this).find('h2').text(_(data.list).avg().round().commify() + ' avg queries per request')
$(this).find('h3').text((data.median||0).commify() + ' median / ' + _(data.list).last().commify() + ' max')
})
Expand All @@ -188,6 +189,7 @@
:javascript
$('.objectNums').bind('redraw', function(){
var data = DATA.objectNums();
if (! data.list[0]) return;
$(this).find('h2').text(_(data.list).avg().round().commify() + ' avg objects per request')
$(this).find('h3').text(data.median.commify() + ' median / ' + _(data.list).last().commify() + ' max')
});
Expand Down
1 change: 1 addition & 0 deletions hotspots.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Gem::Specification.new do |s|
s.add_dependency 'fssm'
s.add_dependency 'json'
s.add_dependency 'sass'
s.add_dependency 'haml'
s.add_dependency 'thin'
s.add_dependency 'compass'
s.add_dependency 'uglifier'
Expand Down

0 comments on commit 98707ac

Please sign in to comment.