{"id":28074229,"url":"https://github.com/peek/peek-rblineprof","last_synced_at":"2025-05-12T23:32:55.294Z","repository":{"id":8133079,"uuid":"9550725","full_name":"peek/peek-rblineprof","owner":"peek","description":"Peek into how much each line of your Rails application takes throughout a request.","archived":false,"fork":false,"pushed_at":"2020-10-22T08:24:51.000Z","size":25,"stargazers_count":235,"open_issues_count":5,"forks_count":31,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-05-16T13:24:00.865Z","etag":null,"topics":["peek","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/peek.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-04-19T17:29:11.000Z","updated_at":"2024-03-26T02:45:04.000Z","dependencies_parsed_at":"2022-08-20T15:20:46.206Z","dependency_job_id":null,"html_url":"https://github.com/peek/peek-rblineprof","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peek%2Fpeek-rblineprof","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peek%2Fpeek-rblineprof/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peek%2Fpeek-rblineprof/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peek%2Fpeek-rblineprof/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peek","download_url":"https://codeload.github.com/peek/peek-rblineprof/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253840927,"owners_count":21972567,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["peek","ruby"],"created_at":"2025-05-12T23:32:15.337Z","updated_at":"2025-05-12T23:32:55.254Z","avatar_url":"https://github.com/peek.png","language":"Ruby","funding_links":[],"categories":["Gems"],"sub_categories":["Profiling and Performance"],"readme":"# Peek::Rblineprof\n\nPeek into how much time each line of your Rails application takes throughout a request.\n\nThings this peek view provides:\n\n- Total time it takes to render individual lines within your codebase\n- Total network time spent waiting per line\n\nYou can also drill down to only certain parts of your codebase like:\n\n- app, everything within `Rails.root/(app|lib)`\n- views, everything within `Rails.root/app/view`\n- gems, everything within `Rails.root/vendor/gems`\n- all, everything within `Rails.root`\n- stdlib\n\n![screen shot 2013-05-06 at 5 08 45 pm](https://f.cloud.github.com/assets/79995/468966/500eb60a-b6aa-11e2-9792-b0d90c0d703d.png)\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'peek-rblineprof'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install peek-rblineprof\n\n## Usage\n\nAdd the following to your `config/initializers/peek.rb`:\n\n```ruby\nPeek.into Peek::Views::Rblineprof\n```\n\nYou'll then need to add the following CSS and CoffeeScript:\n\nCSS:\n\n```scss\n//= require peek\n//= require peek/views/rblineprof\n```\n\nCoffeeScript:\n\n```coffeescript\n#= require peek\n#= require peek/views/rblineprof\n```\n\n## Integration with pygments.rb\n\nBy default peek-rblineprof renders the code of each file in plain text with no\nsyntax highlighting for performance reasons. If you'd like to have your code\nhighlighted as it does on GitHub.com, just include the [pygments.rb](https://github.com/tmm1/pygments.rb) gem:\n\n```ruby\ngem 'pygments.rb', :require =\u003e false\n```\n\npeek-rblineprof will now highlight each file for you, but there's one more thing...\n\nTo use the default theme that peek-rblineprof provides just add the following\nto your peek specific or application stylesheet:\n\n```scss\n//= require peek/views/rblineprof/pygments\n```\n\nThat's it! Now your code will look :sparkles:\n\n## Contributors\n\n- [@tmm1](https://github.com/tmm1) for [rblineprof](https://github.com/tmm1/rblineprof)\n- [@dewski](https://github.com/dewski) for this\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeek%2Fpeek-rblineprof","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeek%2Fpeek-rblineprof","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeek%2Fpeek-rblineprof/lists"}