-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable instrumentation of read_configs in starlark
Summary: This diff enables intrumentation of buckconfigs by adding shims around known `read_config` calls in starlark and exporting those functions from prelude to users. If you want to instrument a known buckconfig key like `fbcode.sanitizer`, you can add `-c buckconfig.log=fbcode.sanitizer` to the buck command. If you want to instrument all keys, add `-c buckconfig.log_all_in_json=true`. to your buck command. Note this is extremely slower and more memory hungry (about 20-40x) for larger binaries so only enable it when absolutely necessary. If you want to see stacktraces for those instrumented buckconfigs, you can add `buckconfig.stacktraces=true`. We shim around all known `read_config`-like functions in prelude. It's possible that we may have missed some other read_config functions that were used or exported from prelude. We need instrumentation from core to close this gap and also make instrumentation significantly more performant Reviewed By: IanChilds Differential Revision: D64739027 fbshipit-source-id: 16b63642438d415ce17c34cab9429fc97b8d9966
- Loading branch information
1 parent
c78fc93
commit 508bccd
Showing
2 changed files
with
90 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters