Object Introspection (OI) enables on-demand, hierarchical profiling of objects in arbitrary C/C++ programs with no recompilation.
Go to file
Jake Hillion ff96b2a814 tests: add ClangTypeParserTest
Currently there is no testing for ClangTypeParser even though it's used in
production. This is because adding integration tests is very hard: they require
testing the build time behaviour at runtime, or else they'd be build failures
intead of test failures. There's a PR available for integration tests but it's
incomplete.

In contrast ClangTypeParser can be sort of unit tested. This follows the
structure of `test/test_drgn_parser.cpp` with some differences. There is a
tonne of boilerplate for setting up the Clang tool, and this set of testing
operates on type names instead of OID functions. The new tests are also
incredibly slow as they compile the entire `integration_test_target.cpp` (which
is huge) for every test case. I don't think this is avoidable without
compromising the separation of the tests somewhat due to the way Clang tooling
forces the code to be structured.

Test plan:
- Tested locally
- CI
2024-02-14 11:34:56 +00:00
.circleci ignore fully qualified types 2024-02-08 05:45:07 -08:00
.github Add website deployment script 2022-12-20 08:40:51 -08:00
cmake remove internal build config and update for CentOS 9 2024-02-14 11:34:55 +00: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: remove unnecessary copy in Element (#457) 2024-02-07 07:51:22 -08:00
oi tests: add ClangTypeParserTest 2024-02-14 11:34:56 +00:00
resources Compile Time OIL for OIL v2 2023-08-30 04:28:02 -07:00
test tests: add ClangTypeParserTest 2024-02-14 11:34:56 +00:00
tools oilgen: migrate to source parsing (#421) 2023-12-19 13:26:25 -08:00
types tbv2: use std::decay_t with smart pointers 2024-01-31 17:27:04 +00:00
website add cppcon presentation links (#478) 2024-02-06 12:54:59 +00: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 remove internal build config and update for CentOS 9 2024-02-14 11:34:55 +00: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 add cppcon presentation links (#478) 2024-02-06 12:54:59 +00:00

object-introspection

Matrix Chat CppCon 2023 Presentation

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.