Object Introspection (OI) enables on-demand, hierarchical profiling of objects in arbitrary C/C++ programs with no recompilation.
Go to file
Jake Hillion 7de35863f5 tbv2: fix Thrift isset lookups with padding
Thrift isset was failing with a SEGV if the struct contained padding. This is
because we indexed the `isset_indexes` data structure using our field index
rather than the index of the field in Thrift. This then gave a rubbish index
for any exceeding which happens if we have added padding in the middle of the
struct, and this index was looked up in the bitset which can cause a SEGV.

Track a new index `thriftFieldIdx` which is only incremented if we've looked up
a Thrift index.

Namespaced the generated Thrift structs while I was there. This isn't necessary
anymore but cleans things up.

Test plan:
- Added a test case with lots of padding. These don't run in the CI but it
  passes locally.
- `FILTER='OilIntegration.*' make test` - no failures
- `FILTER='OidIntegration.*' make test` - no new failures
2024-01-19 19:16:46 +00:00
.circleci circleci: clean up codegen v1 runs 2024-01-03 17:29:59 +00:00
.github Add website deployment script 2022-12-20 08:40:51 -08:00
cmake Enable compiler warnings globally 2023-05-23 10:36:42 +01:00
examples clang-format: set BinPackParameters=false 2023-04-24 11:28:22 +02:00
extern Update drgn to Omar's branch 2023-12-13 11:59:21 +00:00
include/oi tbv2: support capture-thrift-isset 2024-01-16 19:09:46 +00:00
oi tbv2: fix Thrift isset lookups with padding 2024-01-19 19:16:46 +00:00
resources Compile Time OIL for OIL v2 2023-08-30 04:28:02 -07:00
test tbv2: fix Thrift isset lookups with padding 2024-01-19 19:16:46 +00:00
tools oilgen: migrate to source parsing (#421) 2023-12-19 13:26:25 -08:00
types tbv2: add is_primitive to output 2024-01-16 11:14:13 +00:00
website Use objectintrospection.org for the website 2023-09-21 20:59:46 +01:00
.clang-format clang-format: disable bin packing 2023-11-13 18:19:53 +00:00
.clang-tidy Initial commit 2022-12-19 06:37:51 -08:00
.editorconfig Initial commit 2022-12-19 06:37:51 -08:00
.git-blame-ignore-revs Initial commit 2022-12-19 06:37:51 -08:00
.gitignore Delete old files from test/ 2023-01-27 12:45:35 +00:00
.gitmodules drgn: add split dwarf support 2023-06-02 17:52:53 +02:00
CHANGELOG.md Initial commit 2022-12-19 06:37:51 -08:00
CMakeLists.txt oilgen: migrate to source parsing (#421) 2023-12-19 13:26:25 -08:00
CODE_OF_CONDUCT.md Initial commit 2022-12-19 06:37:51 -08:00
CONTRIBUTING.md Initial commit 2022-12-19 06:37:51 -08:00
dev.oid.toml Implement new container for F14ValueMap 2023-09-08 16:31:36 +02:00
flake.lock ci: move formatting checks to nix 2023-12-14 15:31:07 +00:00
flake.nix ci: move formatting checks to nix 2023-12-14 15:31:07 +00:00
LICENSE Initial commit 2022-12-19 06:37:51 -08:00
oss.oid.toml Initial commit 2022-12-19 06:37:51 -08:00
README.md Use objectintrospection.org for the website 2023-09-21 20:59:46 +01:00

object-introspection

Matrix Chat

OI Logo

Object Introspection is a memory profiling technology for C++ objects. It provides the ability to dynamically instrument applications to capture the precise memory occupancy of entire object hierarchies including all containers and dynamic allocations. All this with no code modification or recompilation!

For more information on the technology and how to get started applying it to your applications please check out the Object Introspection website.

Join the Object Introspection community

See the CONTRIBUTING file for how to help out.

License

Object Introspection is licensed under the Apache 2.0 License.