{"id":16947691,"url":"https://github.com/metacosm/quarkus-power","last_synced_at":"2025-03-23T17:30:57.073Z","repository":{"id":203141194,"uuid":"708920844","full_name":"metacosm/quarkus-power","owner":"metacosm","description":"An experiment to display power consumption of Quarkus applications","archived":false,"fork":false,"pushed_at":"2025-03-13T13:42:22.000Z","size":270,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-17T10:17:11.655Z","etag":null,"topics":["java","quarkus-extension","sustainability-dashboard"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/metacosm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"contributing/eclipse-format.xml","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-23T16:44:57.000Z","updated_at":"2025-03-13T13:42:25.000Z","dependencies_parsed_at":"2024-03-01T14:29:05.491Z","dependency_job_id":"f14f8f7e-6c5f-4b66-9d13-46dde5680129","html_url":"https://github.com/metacosm/quarkus-power","commit_stats":{"total_commits":122,"total_committers":4,"mean_commits":30.5,"dds":"0.35245901639344257","last_synced_commit":"8bf0570a1193c972cd4563697cc3e358d8dbbe73"},"previous_names":["metacosm/quarkus-power"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metacosm%2Fquarkus-power","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metacosm%2Fquarkus-power/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metacosm%2Fquarkus-power/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metacosm%2Fquarkus-power/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/metacosm","download_url":"https://codeload.github.com/metacosm/quarkus-power/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245140798,"owners_count":20567450,"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":["java","quarkus-extension","sustainability-dashboard"],"created_at":"2024-10-13T21:48:03.325Z","updated_at":"2025-03-23T17:30:56.320Z","avatar_url":"https://github.com/metacosm.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Quarkus Power\n\n[![Version](https://img.shields.io/maven-central/v/net.laprun.sustainability/quarkus-power?logo=apache-maven\u0026style=flat-square)](https://search.maven.org/artifact/net.laprun.sustainability/quarkus-power)\n\nThis extension is an experiment to measure and display the power consumption of your application as it runs in Dev mode.\nOnly Linux/amd64 and macOS (amd64/apple silicon) are supported at the moment. See below for platform-specific\nrequirements.\n\n## Requirements\n\n### power-server\n\nThis extension relies on retrieving power consumption measurements from an application\ncalled [power-server](https://github.com/metacosm/power-server). This application needs to be run using `sudo` to get\naccess to the underlying OS' power reporting layer. Please download the appropriate version for your OS from\nthe [release page](https://github.com/metacosm/power-server/releases/). Once downloaded, you can unpack\nthe archive and navigate to the `bin` directory to find the `power-server` binary that you can then run\nusing: `sudo power-server`.\n\nNote:\nOn macOS, you will most likely get a dialog telling you that the application cannot be opened because Apple cannot\nverify it. We're looking into addressing this problem but, in the mean time, you can open System Settings then navigate\nto the Privacy \u0026 Security section. Once there, if you scroll down to the Security sub-section, if you happen to perform\nthese actions not too long after seeing the error dialog, there should be a spot where you can allow the application to\nrun anyway. If you click on Allow, the next time you run `power-server`, you should get yet another message, which\nshould now let you open the application. Once this is done, you shouldn't need to perform these steps again (until the\nnext time you download an update, that is).\n\n## Usage\n\nTo use the extension:\n\n1. Add the extension to the application which energy consumption you wish to measure. You can add it as a dependency to\n   your application:\n    ```xml\n   \u003cdependency\u003e\n     \u003cgroupId\u003enet.laprun.sustainability\u003c/groupId\u003e\n     \u003cartifactId\u003equarkus-power\u003c/artifactId\u003e\n    \u003cversion\u003e${project.version}\u003c/version\u003e\n   \u003c/dependency\u003e\n   ``` \n2. Start your application in dev mode: `quarkus dev`\n3. Enter the dev mode terminal by pressing `:` (column)\n4. You should have a new `power` command available, type `power -h` for more information\n5. You can start power measurement with `power start` and stop it with `power stop`, at which time the power consumption\n   of your app will be displayed.\n6. You can also ask for power to be measured for a given duration by using the `-s` option when\n   calling `power start`. In this case, there's no need to call `power stop`, the energy consumed during the specified\n   time will be automatically displayed once the time period is elapsed.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetacosm%2Fquarkus-power","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmetacosm%2Fquarkus-power","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetacosm%2Fquarkus-power/lists"}