{"id":19503050,"url":"https://github.com/brandonki/small_profiler","last_synced_at":"2026-04-24T21:31:46.838Z","repository":{"id":108745521,"uuid":"352227612","full_name":"BrandonKi/small_profiler","owner":"BrandonKi","description":"Simple inline C++ profiling. ","archived":false,"fork":false,"pushed_at":"2024-04-24T23:52:58.000Z","size":44,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-11T06:07:07.249Z","etag":null,"topics":["chrome","profiler"],"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/BrandonKi.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":"2021-03-28T02:56:32.000Z","updated_at":"2024-12-24T18:45:05.000Z","dependencies_parsed_at":"2024-04-27T02:45:14.957Z","dependency_job_id":null,"html_url":"https://github.com/BrandonKi/small_profiler","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BrandonKi/small_profiler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrandonKi%2Fsmall_profiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrandonKi%2Fsmall_profiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrandonKi%2Fsmall_profiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrandonKi%2Fsmall_profiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BrandonKi","download_url":"https://codeload.github.com/BrandonKi/small_profiler/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrandonKi%2Fsmall_profiler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32241591,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["chrome","profiler"],"created_at":"2024-11-10T22:19:25.551Z","updated_at":"2026-04-24T21:31:46.821Z","avatar_url":"https://github.com/BrandonKi.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"TODO reduce overhead of profiling a function\nthis is especially noticeable for small functions\n\n# small_profiler\nSimple header-only inline C++ profiling. Outputs a json that can be used with chrome://tracing as a frontend.\n\nInclude the header then put `PROFILE()` at the begining of any function you wish to profile.\n\n## Example\n```cpp\n#include \"small_profiler.h\"\n\nint main(int, char**) {\n    PROFILE();\n}\n```\nYou can also profile arbitrary scopes as long as you give them a custom name\n```cpp\n#include \"small_profiler.h\"\n\nint main(int, char**) {\n    PROFILE();\n    \n    {\n        PROFILE(\"WHILE_LOOP\");\n        int i = 100000;\n        while(i --\u003e 0) {}\n    }\n}\n```\n\nTo view the graph go to chrome://tracing click 'load' and select the generated json file.\n\nTo turn off profiling define the macro `NO_PROFILE` before including the header file.\n\nTo change the name/path of the output file define the 'PROFILE_OUTPUT_FILE' macro and set it to a string\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrandonki%2Fsmall_profiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrandonki%2Fsmall_profiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrandonki%2Fsmall_profiler/lists"}