{"id":15374181,"url":"https://github.com/moteus/lua-pdh","last_synced_at":"2025-08-03T05:30:51.408Z","repository":{"id":9975496,"uuid":"12002026","full_name":"moteus/lua-pdh","owner":"moteus","description":"Lua binding to Microsoft Performance Data Helper (PDH) library.","archived":false,"fork":false,"pushed_at":"2016-11-16T07:34:41.000Z","size":49,"stargazers_count":4,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-17T16:09:54.809Z","etag":null,"topics":["lua","lua-binding","windows"],"latest_commit_sha":null,"homepage":null,"language":"C","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/moteus.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}},"created_at":"2013-08-09T13:55:24.000Z","updated_at":"2021-02-13T01:53:46.000Z","dependencies_parsed_at":"2022-09-19T05:01:08.018Z","dependency_job_id":null,"html_url":"https://github.com/moteus/lua-pdh","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moteus%2Flua-pdh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moteus%2Flua-pdh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moteus%2Flua-pdh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moteus%2Flua-pdh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moteus","download_url":"https://codeload.github.com/moteus/lua-pdh/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228526734,"owners_count":17933292,"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":["lua","lua-binding","windows"],"created_at":"2024-10-01T13:57:33.938Z","updated_at":"2024-12-06T21:20:47.581Z","avatar_url":"https://github.com/moteus.png","language":"C","readme":"# Binding to Microsoft Performance Data Helper (PDH) library\n========\n[![Licence](http://img.shields.io/badge/Licence-MIT-brightgreen.svg)](LICENCE.txt)\n[![Build status](https://ci.appveyor.com/api/projects/status/2m6mhmam77sllv19/branch/master?svg=true)](https://ci.appveyor.com/project/moteus/lua-pdh/branch/master)\n\n## Usage\n\n```Lua\nlocal pdh = require \"pdh\"\n\nassert(not pdh.disabled())\n\nlocal query = pdh.query()\n\nlocal path    = pdh.translate_path([[\\Processor(_Total)\\% Processor Time]])\nlocal counter = query:add_counter(path)\n\nquery:collect()\npdh.sleep(1)\nwhile true do\n  query:collect()\n  print(path, \" =\u003e \", math.floor(counter:as_double()))\n  pdh.sleep(1000)\nend\n```\n\n[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/moteus/lua-pdh/trend.png)](https://bitdeli.com/free \"Bitdeli Badge\")\n","funding_links":[],"categories":["Microsoft Windows"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoteus%2Flua-pdh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoteus%2Flua-pdh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoteus%2Flua-pdh/lists"}