{"id":18266275,"url":"https://github.com/hdrhistogram/hdrhistogram_c","last_synced_at":"2025-04-05T17:08:27.935Z","repository":{"id":25412557,"uuid":"28841640","full_name":"HdrHistogram/HdrHistogram_c","owner":"HdrHistogram","description":"C port of the HdrHistogram","archived":false,"fork":false,"pushed_at":"2024-01-15T20:21:17.000Z","size":3014,"stargazers_count":226,"open_issues_count":9,"forks_count":100,"subscribers_count":19,"default_branch":"main","last_synced_at":"2024-03-25T20:06:30.447Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HdrHistogram.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING.txt","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}},"created_at":"2015-01-06T01:53:20.000Z","updated_at":"2024-04-14T20:28:52.380Z","dependencies_parsed_at":"2024-01-15T21:12:07.481Z","dependency_job_id":"0b9728b1-6e5b-40af-aee5-eb7fe8cb247b","html_url":"https://github.com/HdrHistogram/HdrHistogram_c","commit_stats":{"total_commits":696,"total_committers":58,"mean_commits":12.0,"dds":"0.47413793103448276","last_synced_commit":"da51af3cec4414f47558c83e4f00f4f8216e0a96"},"previous_names":[],"tags_count":34,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HdrHistogram%2FHdrHistogram_c","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HdrHistogram%2FHdrHistogram_c/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HdrHistogram%2FHdrHistogram_c/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HdrHistogram%2FHdrHistogram_c/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HdrHistogram","download_url":"https://codeload.github.com/HdrHistogram/HdrHistogram_c/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247369952,"owners_count":20927928,"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-05T11:22:42.353Z","updated_at":"2025-04-05T17:08:27.913Z","avatar_url":"https://github.com/HdrHistogram.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"HdrHistogram_c: 'C' port of High Dynamic Range (HDR) Histogram\n\nHdrHistogram\n----------------------------------------------\n\n[![Gitter chat](https://badges.gitter.im/HdrHistogram/HdrHistogram.png)](https://gitter.im/HdrHistogram/HdrHistogram)\n\nThis port contains a subset of the functionality supported by the Java\nimplementation.  The current supported features are:\n\n* Standard histogram with 64 bit counts (32/16 bit counts not supported)\n* All iterator types (all values, recorded, percentiles, linear, logarithmic)\n* Histogram serialisation (encoding version 1.2, decoding 1.0-1.2)\n* Reader/writer phaser and interval recorder\n\nFeatures not supported, but planned\n\n* Auto-resizing of histograms\n\nFeatures unlikely to be implemented\n\n* Double histograms\n* Atomic/Concurrent histograms\n* 16/32 bit histograms\n\n# Simple Tutorial\n\n## Recording values\n\n```C\n#include \u003chdr_histogram.h\u003e\n\nstruct hdr_histogram* histogram;\n\n// Initialise the histogram\nhdr_init(\n    1,  // Minimum value\n    INT64_C(3600000000),  // Maximum value\n    3,  // Number of significant figures\n    \u0026histogram)  // Pointer to initialise\n\n// Record value\nhdr_record_value(\n    histogram,  // Histogram to record to\n    value)  // Value to record\n\n// Record value n times\nhdr_record_values(\n    histogram,  // Histogram to record to\n    value,  // Value to record\n    10)  // Record value 10 times\n\n// Record value with correction for co-ordinated omission.\nhdr_record_corrected_value(\n    histogram,  // Histogram to record to\n    value,  // Value to record\n    1000)  // Record with expected interval of 1000.\n\n// Print out the values of the histogram\nhdr_percentiles_print(\n    histogram,\n    stdout,  // File to write to\n    5,  // Granularity of printed values\n    1.0,  // Multiplier for results\n    CLASSIC);  // Format CLASSIC/CSV supported.\n```\n\n## More examples\n\nFor more detailed examples of recording and logging results look at the\n[hdr_decoder](examples/hdr_decoder.c)\nand [hiccup](examples/hiccup.c)\nexamples.  You can run hiccup and decoder\nand pipe the results of one into the other.\n\n```\n$ ./examples/hiccup | ./examples/hdr_decoder\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhdrhistogram%2Fhdrhistogram_c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhdrhistogram%2Fhdrhistogram_c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhdrhistogram%2Fhdrhistogram_c/lists"}