├── .clang-format ├── .gitattributes ├── .github └── workflows │ └── ci.yml ├── .gitignore ├── CODE_OF_CONDUCT.md ├── LICENSE ├── README.md ├── __init__.py ├── bin ├── lint ├── proto ├── rbperf ├── test └── typecheck ├── bpf ├── rbperf.c └── rbperf.h ├── cli.py ├── docs ├── CONTRIBUTING.md ├── investigation_example.md ├── raise_flamegraph.png ├── ruby_offset_v2_4.c └── tutorial.md ├── handlers.py ├── proto ├── __init__.py ├── rbperf.proto └── rbperf_pb2.py ├── rbperf.py ├── reporters.py ├── setup.py ├── storage.py ├── tests ├── __init__.py ├── correctness │ └── rails_hello_world_rbperf.txt ├── rubies │ ├── ruby-2.4.10 │ ├── ruby-2.4.4 │ ├── ruby-2.5.0 │ ├── ruby-2.5.7 │ ├── ruby-2.5.8 │ ├── ruby-2.6.3 │ ├── ruby-2.6.6 │ └── ruby-2.7.1 ├── ruby_programs │ ├── allocations.rb │ ├── huge_stack.rb │ ├── large_stack.rb │ ├── metaprogramming.rb │ ├── sleepy.rb │ ├── small_stack.rb │ └── too_big.rb ├── test_handlers.py ├── test_rbperf.py └── test_storage.py ├── utils.py ├── vendor ├── bcc │ ├── __init__.py │ ├── disassembler.py │ ├── libbcc.py │ ├── perf.py │ ├── syscall.py │ ├── table.py │ ├── tcp.py │ ├── usdt.py │ ├── utils.py │ └── version.py.in └── flamegraph.pl ├── version.py └── version_specific_config.py /.clang-format: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/.clang-format -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/.gitattributes -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/.gitignore -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/README.md -------------------------------------------------------------------------------- /__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bin/lint: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/bin/lint -------------------------------------------------------------------------------- /bin/proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/bin/proto -------------------------------------------------------------------------------- /bin/rbperf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/bin/rbperf -------------------------------------------------------------------------------- /bin/test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/bin/test -------------------------------------------------------------------------------- /bin/typecheck: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/bin/typecheck -------------------------------------------------------------------------------- /bpf/rbperf.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/bpf/rbperf.c -------------------------------------------------------------------------------- /bpf/rbperf.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/bpf/rbperf.h -------------------------------------------------------------------------------- /cli.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/cli.py -------------------------------------------------------------------------------- /docs/CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/docs/CONTRIBUTING.md -------------------------------------------------------------------------------- /docs/investigation_example.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/docs/investigation_example.md -------------------------------------------------------------------------------- /docs/raise_flamegraph.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/docs/raise_flamegraph.png -------------------------------------------------------------------------------- /docs/ruby_offset_v2_4.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/docs/ruby_offset_v2_4.c -------------------------------------------------------------------------------- /docs/tutorial.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/docs/tutorial.md -------------------------------------------------------------------------------- /handlers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/handlers.py -------------------------------------------------------------------------------- /proto/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /proto/rbperf.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/proto/rbperf.proto -------------------------------------------------------------------------------- /proto/rbperf_pb2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/proto/rbperf_pb2.py -------------------------------------------------------------------------------- /rbperf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/rbperf.py -------------------------------------------------------------------------------- /reporters.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/reporters.py -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/setup.py -------------------------------------------------------------------------------- /storage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/storage.py -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/correctness/rails_hello_world_rbperf.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/tests/correctness/rails_hello_world_rbperf.txt -------------------------------------------------------------------------------- /tests/rubies/ruby-2.4.10: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/tests/rubies/ruby-2.4.10 -------------------------------------------------------------------------------- /tests/rubies/ruby-2.4.4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/tests/rubies/ruby-2.4.4 -------------------------------------------------------------------------------- /tests/rubies/ruby-2.5.0: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/tests/rubies/ruby-2.5.0 -------------------------------------------------------------------------------- /tests/rubies/ruby-2.5.7: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/tests/rubies/ruby-2.5.7 -------------------------------------------------------------------------------- /tests/rubies/ruby-2.5.8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/tests/rubies/ruby-2.5.8 -------------------------------------------------------------------------------- /tests/rubies/ruby-2.6.3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/tests/rubies/ruby-2.6.3 -------------------------------------------------------------------------------- /tests/rubies/ruby-2.6.6: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/tests/rubies/ruby-2.6.6 -------------------------------------------------------------------------------- /tests/rubies/ruby-2.7.1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/tests/rubies/ruby-2.7.1 -------------------------------------------------------------------------------- /tests/ruby_programs/allocations.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/tests/ruby_programs/allocations.rb -------------------------------------------------------------------------------- /tests/ruby_programs/huge_stack.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/tests/ruby_programs/huge_stack.rb -------------------------------------------------------------------------------- /tests/ruby_programs/large_stack.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/tests/ruby_programs/large_stack.rb -------------------------------------------------------------------------------- /tests/ruby_programs/metaprogramming.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/tests/ruby_programs/metaprogramming.rb -------------------------------------------------------------------------------- /tests/ruby_programs/sleepy.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/tests/ruby_programs/sleepy.rb -------------------------------------------------------------------------------- /tests/ruby_programs/small_stack.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/tests/ruby_programs/small_stack.rb -------------------------------------------------------------------------------- /tests/ruby_programs/too_big.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/tests/ruby_programs/too_big.rb -------------------------------------------------------------------------------- /tests/test_handlers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/tests/test_handlers.py -------------------------------------------------------------------------------- /tests/test_rbperf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/tests/test_rbperf.py -------------------------------------------------------------------------------- /tests/test_storage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/tests/test_storage.py -------------------------------------------------------------------------------- /utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/utils.py -------------------------------------------------------------------------------- /vendor/bcc/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/vendor/bcc/__init__.py -------------------------------------------------------------------------------- /vendor/bcc/disassembler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/vendor/bcc/disassembler.py -------------------------------------------------------------------------------- /vendor/bcc/libbcc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/vendor/bcc/libbcc.py -------------------------------------------------------------------------------- /vendor/bcc/perf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/vendor/bcc/perf.py -------------------------------------------------------------------------------- /vendor/bcc/syscall.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/vendor/bcc/syscall.py -------------------------------------------------------------------------------- /vendor/bcc/table.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/vendor/bcc/table.py -------------------------------------------------------------------------------- /vendor/bcc/tcp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/vendor/bcc/tcp.py -------------------------------------------------------------------------------- /vendor/bcc/usdt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/vendor/bcc/usdt.py -------------------------------------------------------------------------------- /vendor/bcc/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/vendor/bcc/utils.py -------------------------------------------------------------------------------- /vendor/bcc/version.py.in: -------------------------------------------------------------------------------- 1 | __version__ = '@REVISION@' 2 | -------------------------------------------------------------------------------- /vendor/flamegraph.pl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/vendor/flamegraph.pl -------------------------------------------------------------------------------- /version.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/version.py -------------------------------------------------------------------------------- /version_specific_config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookarchive/rbperf/HEAD/version_specific_config.py --------------------------------------------------------------------------------