{"id":20508109,"url":"https://github.com/jinjinov/blazorwasmprofiler","last_synced_at":"2026-03-04T02:31:49.727Z","repository":{"id":184896166,"uuid":"672637847","full_name":"Jinjinov/BlazorWasmProfiler","owner":"Jinjinov","description":"Poor Man's Blazor Wasm Profiler","archived":false,"fork":false,"pushed_at":"2023-08-05T18:55:21.000Z","size":198,"stargazers_count":11,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-27T01:51:37.303Z","etag":null,"topics":["blazor","blazor-client","blazor-wasm","blazor-webassembly","profiler","profiling","wasm","webassembly"],"latest_commit_sha":null,"homepage":"","language":"C#","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/Jinjinov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-30T18:53:24.000Z","updated_at":"2024-09-09T10:00:02.000Z","dependencies_parsed_at":"2024-11-15T20:17:08.433Z","dependency_job_id":"deaf3f23-93e6-4e02-b637-ef63c312fc02","html_url":"https://github.com/Jinjinov/BlazorWasmProfiler","commit_stats":null,"previous_names":["jinjinov/blazorwasmprofiler"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Jinjinov/BlazorWasmProfiler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jinjinov%2FBlazorWasmProfiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jinjinov%2FBlazorWasmProfiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jinjinov%2FBlazorWasmProfiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jinjinov%2FBlazorWasmProfiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jinjinov","download_url":"https://codeload.github.com/Jinjinov/BlazorWasmProfiler/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jinjinov%2FBlazorWasmProfiler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30070080,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T01:03:42.280Z","status":"online","status_checked_at":"2026-03-04T02:00:07.464Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["blazor","blazor-client","blazor-wasm","blazor-webassembly","profiler","profiling","wasm","webassembly"],"created_at":"2024-11-15T20:17:01.843Z","updated_at":"2026-03-04T02:31:49.704Z","avatar_url":"https://github.com/Jinjinov.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BlazorWasmProfiler\n\nPoor Man's Blazor Wasm Profiler\n\nIt uses `AspectInjector` to time the execution of every method in your Blazor WASM project.\n\nIt also measures the render time of every Blazor Component that defines these methods:\n\n        protected override void OnParametersSet()\n        // or\n        protected override async Task OnParametersSetAsync()\n\n        // and\n\n        protected override void OnAfterRender(bool firstRender)\n        // or\n        protected override async Task OnAfterRenderAsync(bool firstRender)\n\n## How to use:\n\n1. Include NuGet package from https://www.nuget.org/packages/BlazorWasmProfiler\n\n        \u003cItemGroup\u003e\n            \u003cPackageReference Include=\"BlazorWasmProfiler\" Version=\"0.0.1.0\" /\u003e\n        \u003c/ItemGroup\u003e\n\n2. Add the attribute somewhere in your code\n\n        [assembly: BlazorTimer]\n\n        [assembly: MethodTimer]\n        [assembly: RenderTimer]\n\n3. Access statistics\n\n        var methodStatistics = BlazorTimerAttribute.GetMethodStatistics();\n        var renderStatistics = BlazorTimerAttribute.GetRenderStatistics();\n\n        var methodStatistics = ExecutionStatistics.GetMethodStatistics();\n        var renderStatistics = ExecutionStatistics.GetRenderStatistics();\n\n4. (optional) Use `MethodCallStatistics` and `RenderTimeStatistics` as components\n\n        \u003cBlazorWasmProfiler.MethodCallStatistics /\u003e\n        \u003cBlazorWasmProfiler.RenderTimeStatistics /\u003e\n\n5. (optional) Change\n\n        \u003cRouter AppAssembly=\"@typeof(App).Assembly\"\u003e\n\n    to\n\n        \u003cRouter \n            AppAssembly=\"@typeof(App).Assembly\" \n            AdditionalAssemblies=\"new[] { typeof(BlazorWasmProfiler.BlazorTimerAttribute).Assembly }\"\u003e\n\n    and use `MethodCallStatistics` and `RenderTimeStatistics` as pages\n\n        \u003ca href=\"MethodCallStatistics\"\u003eMethod Call Statistics\u003c/a\u003e\n        \u003ca href=\"RenderTimeStatistics\"\u003eRender Time Statistics\u003c/a\u003e\n\n## Version history:\n\n- 0.0.1.0:\n    - Excluded the body of `OnParametersSet()` and `OnAfterRender(bool firstRender)` from render timing\n    - Render timing now works with `OnParametersSetAsync()` and `OnAfterRenderAsync(bool firstRender)`\n    - Added `enum StatisticsOrder` to get statistics ordered by any property\n- 0.0.0.1:\n    - Initial release\n\n## Screenshots:\n\n![MethodCallStatistics](https://raw.githubusercontent.com/Jinjinov/BlazorWasmProfiler/main/MethodCallStatistics.png)\n\n![RenderTimeStatistics](https://raw.githubusercontent.com/Jinjinov/BlazorWasmProfiler/main/RenderTimeStatistics.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjinjinov%2Fblazorwasmprofiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjinjinov%2Fblazorwasmprofiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjinjinov%2Fblazorwasmprofiler/lists"}