<commit_before># Glimpse::PerformanceBar

Provide a glimpse into the MySQL queries made during your application's requests.

Things this glimpse view provides:

- Total number of MySQL queries called during the request
- The duration of the queries made during the request

## Installation

Add this line to your application's Gemfile:

    gem 'glimpse-performance_bar'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install glimpse-performance_bar

## Usage

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

```ruby
Glimpse.into Glimpse::Views::PerformanceBar
```

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

CSS:

```css
//= require glimpse
//= require glimpse/views/performance_bar
```

CoffeeScript:

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

Lastly this view requires you insert an additional partial after the `glimpse/results`:

```erb
...
<%= yield %>
<%= render 'glimpse/results' %>
<%= render 'glimpse/results/performance_bar' %>
...
```

## Contributors
<commit_msg>Add the items it provides<commit_after># Glimpse::PerformanceBar

Provide a glimpse into `window.performance` timing.

Things this glimpse view provides:

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

## Installation

Add this line to your application's Gemfile:

    gem 'glimpse-performance_bar'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install glimpse-performance_bar

## Usage

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

```ruby
Glimpse.into Glimpse::Views::PerformanceBar
```

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

CSS:

```scss
//= require glimpse
//= require glimpse/views/performance_bar
```

CoffeeScript:

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

Lastly this view requires you insert an additional partial after the `glimpse/results`:

```erb
...
<%= yield %>
<%= render 'glimpse/results' %>
<%= render 'glimpse/results/performance_bar' %>
...
```

## Contributors

{'fraction_non_alphanumeric': 0.11079274116523401, 'fraction_numerical': 0.0, 'mean_word_length': 4.358056265984655, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4834706', 'n_tokens_mistral': 684, 'n_tokens_neox': 635, 'n_words': 209}