File: README.md

package info (click to toggle)
ruby-peek-performance-bar 1.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 132 kB
  • sloc: javascript: 129; ruby: 107; makefile: 4
file content (68 lines) | stat: -rw-r--r-- 1,437 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Peek::PerformanceBar

Take a peek into the `window.performance` timing behind your app.

![image](https://f.cloud.github.com/assets/79995/268624/14d9df90-8f47-11e2-9718-111c7c367974.png)

Things this peek view provides:

- Frontend
- Latency / Receiving
- Backend
- TCP / SSL
- Redirect
- DNS Lookup

## Installation

Add this line to your application's Gemfile:

    gem 'peek-performance_bar'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install peek-performance_bar

## Usage

Add the following to your `config/initializers/peek.rb`:

```ruby
Peek.into Peek::Views::PerformanceBar
```

You'll then need to add the following CSS and CoffeeScript:

CSS:

```scss
//= require peek
//= require peek/views/performance_bar
```

CoffeeScript:

```coffeescript
#= require peek
#= require peek/views/performance_bar
```

## Contributors

- [@josh](https://github.com/josh) - The original implementation.
- [@tmm1](https://github.com/tmm1) - The original implementation.
- [@rtomayko](https://github.com/rtomayko) - The original implementation.
- [@kneath](https://github.com/kneath) - The original implementation.
- [@dewski](https://github.com/dewski) - Just the extractor.

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request