{"id":19723516,"url":"https://github.com/remind101/ruby-cloud-profiler","last_synced_at":"2025-07-11T00:09:20.262Z","repository":{"id":56338206,"uuid":"311429039","full_name":"remind101/ruby-cloud-profiler","owner":"remind101","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-07T16:28:14.000Z","size":29,"stargazers_count":3,"open_issues_count":1,"forks_count":4,"subscribers_count":33,"default_branch":"master","last_synced_at":"2025-06-30T19:54:00.841Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/remind101.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":"2020-11-09T18:27:01.000Z","updated_at":"2023-03-07T16:41:30.000Z","dependencies_parsed_at":"2024-11-11T23:27:38.510Z","dependency_job_id":"aa550114-6ff8-42c9-b4bd-6646e21c33e1","html_url":"https://github.com/remind101/ruby-cloud-profiler","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/remind101/ruby-cloud-profiler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remind101%2Fruby-cloud-profiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remind101%2Fruby-cloud-profiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remind101%2Fruby-cloud-profiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remind101%2Fruby-cloud-profiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/remind101","download_url":"https://codeload.github.com/remind101/ruby-cloud-profiler/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remind101%2Fruby-cloud-profiler/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264696466,"owners_count":23650936,"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-11-11T23:22:28.921Z","updated_at":"2025-07-11T00:09:20.236Z","avatar_url":"https://github.com/remind101.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ruby-cloud-profiler\n\nAn implementation of [Google Cloud Profiler](https://cloud.google.com/profiler)\nfor Ruby.\n\nThis project is not officially supported or endorsed by Google in any way.\n\nUnder the hood, the agent uses [Stackprof](https://github.com/tmm1/stackprof)\nto collect the profiling data, and then converts it to\n[the pprof format](https://github.com/google/pprof/blob/master/proto/profile.proto)\nexpected by Cloud Profiler. The Cloud Profiler API doesn't have pretty HTML\ndocumentation, but is described\n[in the googleapis specification](https://github.com/googleapis/googleapis/blob/master/google/devtools/cloudprofiler/v2/profiler.proto)\nwhich creates\n[generated code in google-api-ruby-client](https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google/apis/cloudprofiler_v2).\n\nTo use, you need to decide what to name your service and you need a Google\nCloud project ID:\n\n    require 'cloud_profiler_agent'\n    agent = CloudProfilerAgent::Agent.new(service: 'my-service', project_id: 'my-project-id')\n    agent.start\n\nThis will start a background thread that will merrily poll the Cloud Profiler\nAPI to see what kinds of profiles it should collect, and when. Then it will run\nstackprof, and upload the profiles.\n\nNote: the agent can only profile its own process. If your Ruby application is\nrunning from a webserver that forks subprocesses, then you'll need to somehow\narrange to start the agent in the subprocess.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremind101%2Fruby-cloud-profiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fremind101%2Fruby-cloud-profiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremind101%2Fruby-cloud-profiler/lists"}