{"id":31658330,"url":"https://github.com/couchbase/phosphor","last_synced_at":"2025-10-07T15:19:08.834Z","repository":{"id":66135661,"uuid":"59219757","full_name":"couchbase/phosphor","owner":"couchbase","description":"High performance event tracing","archived":false,"fork":false,"pushed_at":"2025-10-02T05:39:58.000Z","size":3461,"stargazers_count":17,"open_issues_count":0,"forks_count":7,"subscribers_count":40,"default_branch":"master","last_synced_at":"2025-10-02T07:20:49.133Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/couchbase.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.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,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2016-05-19T15:36:20.000Z","updated_at":"2025-10-02T05:40:02.000Z","dependencies_parsed_at":"2023-03-13T20:30:44.555Z","dependency_job_id":"75f9bbac-e413-466f-a6d8-b0a271efb5e7","html_url":"https://github.com/couchbase/phosphor","commit_stats":null,"previous_names":[],"tags_count":95,"template":false,"template_full_name":null,"purl":"pkg:github/couchbase/phosphor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/couchbase%2Fphosphor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/couchbase%2Fphosphor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/couchbase%2Fphosphor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/couchbase%2Fphosphor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/couchbase","download_url":"https://codeload.github.com/couchbase/phosphor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/couchbase%2Fphosphor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278796038,"owners_count":26047351,"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","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-10-07T15:19:01.199Z","updated_at":"2025-10-07T15:19:08.826Z","avatar_url":"https://github.com/couchbase.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Phosphor\n\n[![License](https://img.shields.io/github/license/couchbaselabs/phosphor.svg)](LICENSE.txt)\n\nPhosphor is a high-performance event tracing framework for C++11 applications\ndesigned for use in Couchbase Server - specifically KV Engine and ForestDB.\n\nEvent tracing is implemented in an application by instrumenting it as\ndescribed in [phosphor.h](include/phosphor/phosphor.h). You can then enable\nand manage tracing using the management API described in\n[trace_log.h](include/phosphor/trace_log.h).\n\n## Example\nThe following is an example of hypothetical instrumentation in memcached:\n\n    void performSet(ENGINE_HANDLE* engine, const char* key, const char* value) {\n        TRACE_EVENT_START1(\"Memcached:Operation\", \"performSet\", \"key\", key);\n        // Perform a set operation\n        TRACE_EVENT_END0(\"Memcached:Operation\", \"performSet\");\n    }\n\nThe following is an example of enabling tracing with a fixed-style 5MB buffer:\n\n    phosphor::TraceConfig config(phosphor::BufferMode::fixed, 5 * 1024 * 1024);\n    phosphor::TraceLog::getInstance().start(config);\n\nOnce the trace buffer becomes full you can retrieve it and iterate over it:\n\n    auto trace_buffer = phosphor::TraceLog::getInstance().getBuffer();\n    for(auto\u0026 event : *trace_buffer) {\n        std::cout \u003c\u003c event \u003c\u003c '\\n';\n    }\n\n## Build\n\nPhosphor is written in C++17 and requires a mostly conforming compiler.\n\nPhosphor is built as part of the full server build.\nSee [Build Couchbase server](https://github.com/couchbase/tlm#how-to-build) for\nmore information.\n\n## Documentation\n\nDocumentation for Phosphor can be found on\n[couchbase.github.io/phosphor](http://couchbase.github.io/phosphor/). The\ndocumentation is generated by Doxygen and can be done using `make\ndocs` with the top level Makefile.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcouchbase%2Fphosphor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcouchbase%2Fphosphor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcouchbase%2Fphosphor/lists"}