{"id":4231,"url":"https://github.com/mfrachet/rn-render-perfs","last_synced_at":"2025-07-31T13:30:52.928Z","repository":{"id":66323498,"uuid":"109361252","full_name":"mfrachet/rn-render-perfs","owner":"mfrachet","description":":zap: :cyclone: Measure React rendering lifecycles using controls","archived":true,"fork":false,"pushed_at":"2017-11-10T17:13:34.000Z","size":102,"stargazers_count":42,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-15T00:20:08.155Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mfrachet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-11-03T06:38:37.000Z","updated_at":"2023-03-14T23:09:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"deab3b95-60b8-4d5a-b3d3-50d5c453a9b6","html_url":"https://github.com/mfrachet/rn-render-perfs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfrachet%2Frn-render-perfs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfrachet%2Frn-render-perfs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfrachet%2Frn-render-perfs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfrachet%2Frn-render-perfs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mfrachet","download_url":"https://codeload.github.com/mfrachet/rn-render-perfs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228248556,"owners_count":17891447,"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":[],"created_at":"2024-01-05T20:17:05.258Z","updated_at":"2024-12-05T06:31:39.670Z","avatar_url":"https://github.com/mfrachet.png","language":"JavaScript","funding_links":[],"categories":["Components","Others"],"sub_categories":["UI"],"readme":"[![Build Status](https://travis-ci.org/mfrachet/rn-render-perfs.svg?branch=master)](https://travis-ci.org/mfrachet/rn-render-perfs)\n[![Coverage Status](https://coveralls.io/repos/github/mfrachet/rn-render-perfs/badge.svg?branch=master)](https://coveralls.io/github/mfrachet/rn-render-perfs?branch=master)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nMeasure React rendering lifecycles using controls using a simple component\n\n---\n\u003cimg src=\"https://img4.hostingpics.net/pics/549535badperfs.gif\" /\u003e\n\n---\n\n\n### Installation\n\n```\n$ yarn add -D rn-render-perfs\n```\n\n### In your code\n\n```javascript\nimport RnRenderPerfs from 'rn-render-perfs';\nimport Perf from 'ReactPerf';\n\nexport default function App() {\n  return (\n      \u003cView\u003e\n        \u003cYourApp /\u003e\n        \u003cRnRenderPerfs monitor={Perf} /\u003e\n      \u003c/View\u003e\n  );\n};\n```\n\nYou can pass any kind of `Perf` module inside `monitor` props that implements :\n\n- `start`: Function\n- `stop`: Function\n- `printWasted`: Function\n- `printInclusive`: Function\n- `printExclusive`: Function\n- `printOperations`: Function\n\n### What can I expect from this module ?\n\nThis module is a simple wrapper allowing to call `Perf` modules using the same API as the `react-addons-perfs` one.\n\nWith the previous code example, you can access to these information (from [react-addons-perfs doc](https://reactjs.org/docs/perf.html)) :\n\n- `Print wasted`: “Wasted” time is spent on components that didn’t actually render anything\n- `Print Inclusive`: Print the overall time taken by React\n- `Print Exclusive`: “Exclusive” times don’t include the times taken to mount the components: processing props, calling componentWillMount and componentDidMount, etc.\n- `Print operations`: Prints the underlying manipulations\n\n--- \n\n\n*With the help of [@flepretre](https://github.com/flepretre) \u0026 [@kennydee](https://github.com/kennydee)*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfrachet%2Frn-render-perfs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmfrachet%2Frn-render-perfs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfrachet%2Frn-render-perfs/lists"}