{"id":37146711,"url":"https://github.com/rtntubmt97/profiler","last_synced_at":"2026-01-14T17:04:35.206Z","repository":{"id":57535071,"uuid":"275978340","full_name":"rtntubmt97/profiler","owner":"rtntubmt97","description":null,"archived":false,"fork":false,"pushed_at":"2020-09-01T09:36:31.000Z","size":58,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-20T16:46:15.624Z","etag":null,"topics":["golang","golang-library","golang-package","profiler","realtime","request-rate"],"latest_commit_sha":null,"homepage":"","language":"Go","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/rtntubmt97.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}},"created_at":"2020-06-30T02:38:58.000Z","updated_at":"2021-02-25T03:53:48.000Z","dependencies_parsed_at":"2022-09-26T18:21:50.291Z","dependency_job_id":null,"html_url":"https://github.com/rtntubmt97/profiler","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/rtntubmt97/profiler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtntubmt97%2Fprofiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtntubmt97%2Fprofiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtntubmt97%2Fprofiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtntubmt97%2Fprofiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rtntubmt97","download_url":"https://codeload.github.com/rtntubmt97/profiler/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtntubmt97%2Fprofiler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28427186,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T16:38:47.836Z","status":"ssl_error","status_checked_at":"2026-01-14T16:34:59.695Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["golang","golang-library","golang-package","profiler","realtime","request-rate"],"created_at":"2026-01-14T17:04:34.632Z","updated_at":"2026-01-14T17:04:35.196Z","avatar_url":"https://github.com/rtntubmt97.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"required go 1.14 or above\n\nexample\n\n```golang\npackage main\n\nimport (\n\t\"fmt\"\n\t\"html\"\n\t\"math/rand\"\n\t\"net/http\"\n\t\"time\"\n\n\tapp \"github.com/rtntubmt97/profiler/pkg/applications\"\n\tk \"github.com/rtntubmt97/profiler/pkg/kernel\"\n)\n\n// this default profiler will run on localhost:9081\nvar profiler k.Profiler = app.HttpPageProfiler()\n\nfunc main() {\n\thttp.HandleFunc(\"/foo\", FooHandler)\n\thttp.ListenAndServe(\":9080\", nil)\n}\n\nfunc FooHandler(rsp http.ResponseWriter, request *http.Request) {\n\tmark := k.CreateMark()\n\tdefer profiler.Record(\"FooHandler\", mark)\n\n\t// doing something in handler\n\tprocessTimeMillis := rand.Int() % 100\n\ttime.Sleep(time.Microsecond * time.Duration(processTimeMillis))\n\tfmt.Fprintf(rsp, \"Hello, %q\", html.EscapeString(request.URL.Path))\n\n\t// process something in db\n\tn := rand.Int() % 5\n\tfor i := 0; i \u003c n; i++ {\n\t\tdbProcess()\n\t}\n}\n\nfunc dbProcess() {\n\tmark := k.CreateMark()\n\tdefer profiler.Record(\"dbProcess\", mark)\n\n\tprocessTimeMillis := rand.Int() % 100\n\ttime.Sleep(time.Microsecond * time.Duration(processTimeMillis))\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frtntubmt97%2Fprofiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frtntubmt97%2Fprofiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frtntubmt97%2Fprofiler/lists"}