Skip to content

Commit

Permalink
Add profile example
Browse files Browse the repository at this point in the history
  • Loading branch information
samlambert committed Jan 28, 2014
1 parent 0d6a212 commit 2a71444
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,63 @@ hubot>> user1:
└───────────────┴─────────┴──────────┴────────┴────────┴──────────┴────────┴──────────┴────┘
```

```
user1>> mysql profile SELECT * FROM users
hubot>> user1:
┌──────────────────────────────────────┬────────────────┐
│Status │Duration (secs) │
├──────────────────────────────────────┼────────────────┤
│starting │0.000036 │
├──────────────────────────────────────┼────────────────┤
│Waiting for query cache lock │0.000004 │
├──────────────────────────────────────┼────────────────┤
│checking query cache for query │0.000042 │
├──────────────────────────────────────┼────────────────┤
│checking permissions │0.000009 │
├──────────────────────────────────────┼────────────────┤
│Opening tables │0.000031 │
├──────────────────────────────────────┼────────────────┤
│System lock │0.000011 │
├──────────────────────────────────────┼────────────────┤
│Waiting for query cache lock │0.000027 │
├──────────────────────────────────────┼────────────────┤
│init │0.000029 │
├──────────────────────────────────────┼────────────────┤
│optimizing │0.000006 │
├──────────────────────────────────────┼────────────────┤
│statistics │0.000013 │
├──────────────────────────────────────┼────────────────┤
│preparing │0.000010 │
├──────────────────────────────────────┼────────────────┤
│executing │0.000003 │
├──────────────────────────────────────┼────────────────┤
│Sending data │0.000089 │
├──────────────────────────────────────┼────────────────┤
│end │0.000006 │
├──────────────────────────────────────┼────────────────┤
│query end │0.000006 │
├──────────────────────────────────────┼────────────────┤
│closing tables │0.000008 │
├──────────────────────────────────────┼────────────────┤
│freeing items │0.000007 │
├──────────────────────────────────────┼────────────────┤
│Waiting for query cache lock │0.000003 │
├──────────────────────────────────────┼────────────────┤
│freeing items │0.000064 │
├──────────────────────────────────────┼────────────────┤
│Waiting for query cache lock │0.000008 │
├──────────────────────────────────────┼────────────────┤
│freeing items │0.000003 │
├──────────────────────────────────────┼────────────────┤
│storing result in query cache │0.000004 │
├──────────────────────────────────────┼────────────────┤
│logging slow query │0.000002 │
├──────────────────────────────────────┼────────────────┤
│cleaning up │0.000003 │
└──────────────────────────────────────┴────────────────┘
```

## Thanks

Thanks to everyone who has contributed to Hubot and this packages dependencies.
Expand Down

0 comments on commit 2a71444

Please sign in to comment.