{"id":15687853,"url":"https://github.com/orisano/nopieprofile","last_synced_at":"2025-03-30T11:42:25.128Z","repository":{"id":163946281,"uuid":"619203489","full_name":"orisano/nopieprofile","owner":"orisano","description":null,"archived":false,"fork":false,"pushed_at":"2023-06-14T08:46:04.000Z","size":7,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-25T05:34:30.806Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/orisano.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":"2023-03-26T15:16:47.000Z","updated_at":"2023-03-27T08:45:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"8d397e71-4499-476f-a82e-dd3edd57d1f2","html_url":"https://github.com/orisano/nopieprofile","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orisano%2Fnopieprofile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orisano%2Fnopieprofile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orisano%2Fnopieprofile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orisano%2Fnopieprofile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orisano","download_url":"https://codeload.github.com/orisano/nopieprofile/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246314125,"owners_count":20757457,"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-10-03T17:51:22.391Z","updated_at":"2025-03-30T11:42:25.093Z","avatar_url":"https://github.com/orisano.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nopieprofile\nnopieprofile is a Go package that provides utilities for converting CPU profiles generated by Go's pprof tool from runtime addresses to static addresses.\n\n## Motivation\nWhen Go binaries are built with Position-Independent Executables (PIE) enabled, the addresses of the functions and variables in the binary are determined at runtime. This can make it difficult to analyze CPU profiles generated by the pprof tool, because the profile samples will contain runtime addresses that are different each time the program runs.\n\nnopieprofile provides a way to convert such profiles to use static addresses instead of runtime addresses, making them more amenable to analysis and easier to compare across multiple runs.\n\n## Example\n```go\npackage nopieprofile_test\n\nimport (\n\t\"log\"\n\t\"os\"\n\t\"testing\"\n\n\t\"github.com/orisano/nopieprofile\"\n)\n\nfunc TestMain(m *testing.M) {\n\tcode := m.Run()\n\tif err := nopieprofile.RewriteTestProfile(); err != nil {\n\t\tlog.Printf(\"warn: failed to rewrite test profile: %v\", err)\n\t}\n\tos.Exit(code)\n}\n```\n\nshorthand\n```go\npackage nopieprofile_test\n\nimport (\n\t\"testing\"\n\n\t\"github.com/orisano/nopieprofile/nopieprofiletest\"\n)\n\nfunc TestMain(m *testing.M) { nopieprofiletest.Main(m) }\n```\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forisano%2Fnopieprofile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forisano%2Fnopieprofile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forisano%2Fnopieprofile/lists"}