{"id":15308171,"url":"https://github.com/danielmorell/flask-rollbar-profile","last_synced_at":"2025-06-14T23:05:20.810Z","repository":{"id":144475557,"uuid":"611743216","full_name":"danielmorell/flask-rollbar-profile","owner":"danielmorell","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-09T13:06:29.000Z","size":761,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-23T11:42:46.303Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danielmorell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-09T13:05:08.000Z","updated_at":"2023-03-09T13:06:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"c81a244a-59e7-4808-b93d-b1bab43ef8e8","html_url":"https://github.com/danielmorell/flask-rollbar-profile","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"492ae0a4bad9597fdc11b131c9c37f02e37966d1"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/danielmorell/flask-rollbar-profile","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielmorell%2Fflask-rollbar-profile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielmorell%2Fflask-rollbar-profile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielmorell%2Fflask-rollbar-profile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielmorell%2Fflask-rollbar-profile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielmorell","download_url":"https://codeload.github.com/danielmorell/flask-rollbar-profile/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielmorell%2Fflask-rollbar-profile/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259896122,"owners_count":22928330,"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-01T08:14:23.369Z","updated_at":"2025-06-14T23:05:20.789Z","avatar_url":"https://github.com/danielmorell.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Test Rollbar Profiling Flask App\n\nThis is a simple Flask app that helps profile Rollbar's Python SDK.\n\n## Setup\n\n1. Clone this repo.\n2. Create a virtualenv `\u003cpython version\u003e -m virtualenv venv`.\n3. Activate the virtualenv `source venv/bin/activate`.\n4. Create a virtualenv and install the requirements with `pip install -r requirements.txt`.\n5. Start the app with `flask run`.\n6. Run multiple profiles by executing `test.sh`.\n7. View the results with `snakeviz pstat/\u003cprofile\u003e.prof`.\n\nThere are four extra wheels available:\n\n```text\nwheels\n├── rollbar-0.16.4b0-py3-none-any.whl  # The current version of the SDK\n├── rollbar-batched-literals.whl       # The SDK with batched-transform and literals\n├── rollbar-batched-transform.whl      # The SDK with batched-transform\n└── rollbar-literals.whl               # The current version of the SDK with just literals.\n```\n\nYou can install an alternate version of the Rollbar SDK by running `pip install ./wheels/\u003cwheel file\u003e`.\n\n## The Literals\n\nThe versions marked as literals use literal types instead of the type functions\nfor the `transform()` method in `rollbar/lib/traverse.py`. e.g.\n\n```diff\n- dict((k, traverse(v, key=key + (k,), **kw)) for k, v in iteritems(obj)),\n+ {(k, traverse(v, key=key + (k,), **kw)) for k, v in iteritems(obj)},\n```\n\nGenerally, using a literal type is faster than using the type function. However,\nin this instance it appeared to be much faster than I expected. Probably because\nwe run through this code so many times.\n\nI included a fresh set of profiles for each of these versions. The results are\nin the `pstat` directory organized by the version of the SDK.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielmorell%2Fflask-rollbar-profile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielmorell%2Fflask-rollbar-profile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielmorell%2Fflask-rollbar-profile/lists"}