{"id":24990546,"url":"https://github.com/tomasbouda/inlineprofiler","last_synced_at":"2025-08-28T23:43:04.560Z","repository":{"id":92304363,"uuid":"138071439","full_name":"TomasBouda/InlineProfiler","owner":"TomasBouda","description":"Lightweigth code profiling using timestamps.","archived":false,"fork":false,"pushed_at":"2018-06-21T07:39:14.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-01T07:42:05.749Z","etag":null,"topics":["class","code","profiler","profiling","profiling-library"],"latest_commit_sha":null,"homepage":null,"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/TomasBouda.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"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":"2018-06-20T18:33:10.000Z","updated_at":"2018-06-21T07:37:03.000Z","dependencies_parsed_at":"2023-03-13T17:29:42.532Z","dependency_job_id":null,"html_url":"https://github.com/TomasBouda/InlineProfiler","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/TomasBouda/InlineProfiler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomasBouda%2FInlineProfiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomasBouda%2FInlineProfiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomasBouda%2FInlineProfiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomasBouda%2FInlineProfiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TomasBouda","download_url":"https://codeload.github.com/TomasBouda/InlineProfiler/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomasBouda%2FInlineProfiler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272582120,"owners_count":24959415,"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","status":"online","status_checked_at":"2025-08-28T02:00:10.768Z","response_time":74,"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":["class","code","profiler","profiling","profiling-library"],"created_at":"2025-02-04T13:37:19.618Z","updated_at":"2025-08-28T23:43:04.552Z","avatar_url":"https://github.com/TomasBouda.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# InlineProfiler [![NuGet](https://img.shields.io/nuget/v/TomLabs.InlineProfiler.svg)](https://www.nuget.org/packages/TomLabs.InlineProfiler/) [![Build status](https://ci.appveyor.com/api/projects/status/qh7pgj1fimtp2ksr?svg=true)](https://ci.appveyor.com/project/TomasBouda/inlineprofiler) [![Discord](https://img.shields.io/badge/chat-on%20discord-orange.svg)](https://discord.gg/jqWADRg)\n\nLightweigth code profiling using timestamps.\n\nGoal of this library is to provide simple solution for first and quick profiling. You can setup few Probes and immediately see where is the bottleneck.\n\n## Install via nuget\n\n```ps1\nInstall-Package TomLabs.InlineProfiler\n```\n\n## Usage\n\n```cs\nusing TomLabs.Profiling;\n\n// Setup write output\nInlineProfiler.WriteTo(x =\u003e Debug.WriteLine(x));\n// And another one if you want, with custom formating\nInlineProfiler.WriteTo((type, label, elapsed) =\u003e Console.WriteLine($\"|{type.ToString().ToUpper()}| Label:{label} - {elapsed}ms\"));\n\nInlineProfiler.Probe(\"Some label\");\n\n// Some long running code\nThread.Sleep(100);\n\n// Get current timestamp\nInlineProfiler.Probe();\n\n// Or write an absolute time spent in this section\nusing (InlineProfiler.ProbeSection(\"Slow section\"))\n{\n    // Some very long running code :)\n    Thread.Sleep(1000);\n}\n\nInlineProfiler.Probe();\n```\n\nWill result in this:\n\n```\nTrace\u003e\n--------\nPROBE Some label: 0ms\nPROBE 2: 104ms\nSECTION Slow section: 1002ms\nPROBE 3: 1106ms\n\nConsole\u003e\n--------\n|PROBE| Label:Some label - 0ms\n|PROBE| Label:2 - 104ms\n|SECTION| Label:Slow section - 1002ms\n|PROBE| Label:3 - 1106ms\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomasbouda%2Finlineprofiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomasbouda%2Finlineprofiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomasbouda%2Finlineprofiler/lists"}