{"id":19399705,"url":"https://github.com/fbsamples/cppcon24-async-demo","last_synced_at":"2025-08-22T03:21:28.382Z","repository":{"id":257490730,"uuid":"858369084","full_name":"fbsamples/cppcon24-async-demo","owner":"fbsamples","description":"Demo application for C++con 2024 to showcase async stacks","archived":false,"fork":false,"pushed_at":"2024-09-16T19:19:19.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-01-07T11:35:35.867Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/fbsamples.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2024-09-16T19:18:56.000Z","updated_at":"2024-09-17T22:51:43.000Z","dependencies_parsed_at":"2024-09-17T03:28:29.480Z","dependency_job_id":null,"html_url":"https://github.com/fbsamples/cppcon24-async-demo","commit_stats":null,"previous_names":["fbsamples/cppcon24-async-demo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fbsamples%2Fcppcon24-async-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fbsamples%2Fcppcon24-async-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fbsamples%2Fcppcon24-async-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fbsamples%2Fcppcon24-async-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fbsamples","download_url":"https://codeload.github.com/fbsamples/cppcon24-async-demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240572671,"owners_count":19822702,"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-10T11:10:55.355Z","updated_at":"2025-02-24T23:25:17.830Z","avatar_url":"https://github.com/fbsamples.png","language":"Python","readme":"\n# CppCon24 Async Stacks Demo Application\nA demo application for a CppCon24 talk: How Meta made Debugging Async Code Easier with Coroutines and Senders. The demo application's purpose is to showcase async stacks integration in Unifex.\n\n## Requirements\nThe demo application requires\n* liburing\n* C++20\n* lldb\n* clang-18\n* x86_64\n\nWe've tested this with clang-18; updated versions of clang may also be compatible. co_bt.py did work for GDB, but that has not been recently confirmed.\n\n## Building the demo application\n```\ncmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS=\"-stdlib=libc++ -Wno-c++11-narrowing\" -DCMAKE_EXE_LINKER_FLAGS=-stdlib=libc++\n```\n\n## Importing co_bt.py in lldb\nIn an .lldbinit file or when you start lldb in the cppcon24-async-demo repo, paste the following code:\n\n```\ncommand script import scripts/co_bt.py\n```\n\n## How to view the async stack\nIn lldb, set the breakpoint on a line of code that will have a running async operation. Type\n`co_bt` to see the async stack at that breakpoint.\n\nIf there is no running async operation, you will see an error similar to the one below:\n```\nNo async operation detected\n```\n\n## Full documentation\nThis is a demo application for a CppCon talk so this repo will not be actively maintained. co_bt.py is a script maintained by [folly](https://github.com/facebook/folly/blob/main/folly/coro/scripts/co_bt.py). The co_bt.py included in this repo is purely for demo purposes.\n\nSee the [CONTRIBUTING](CONTRIBUTING.md) file for how to help out.\n\n## Appendix\n\n- [co_bt.py](https://github.com/facebook/folly/blob/main/folly/coro/scripts/co_bt.py) is maintained by folly.\n- This demo application is based off the [AsyncStackRoot and AsyncStackFrame](https://github.com/facebook/folly/blob/main/folly/tracing/AsyncStack.h) data stuctures maintained by folly.\n- [Unifex](https://github.com/facebookexperimental/libunifex) was a reference implementation for P2300 and is an open sourced C++ coroutines/sender library.\n\n## License\nThis project is made available under the Apache license, as found in the LICENSE.txt file.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffbsamples%2Fcppcon24-async-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffbsamples%2Fcppcon24-async-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffbsamples%2Fcppcon24-async-demo/lists"}