-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a JSON Log tracing backend (#27135)
* Start a backend implementation, empty for now * Add jsonpp support * Allow sstream and string usage in the log tracing library * remove unneeded log line * Restyle * Make matter tracing opt-in by default. Will enable it for chip-tool and linux apps at start * make things compile, add dependency into chip-command * Enable tracing for CHIPTool * Ensure uniqueness * Restyle * Add a few more comments * Add MATTER_TRACE_EVENT_SCOPE everywhere. Ran: ```sh rg MATTER_TRACE_EVENT_SCOPE --files-with-matches \ | grep -v src/trace \ | xargs sd \ '(^(\s*)MATTER_TRACE_EVENT_SCOPE\("(.*)",\s*"(.*)"\);)' \ "\${1}\n\${2}MATTER_TRACE_SCOPE(::chip::Tracing::Scope::\${4}_\${3});" ``` * Add tracing/scope.h include to have access to MATTER_TRACE_SCOPE * Switch addressresolve to use matter tracing instead of tracevent (instant is one of the cases where matter_trace did not actually work) * Switch out and add incremental resolve record parse * Restyle * Make chip-tool compile. Still need to fix device apps * Fix compilation with tracing disabled * Enable tracing by defaulf for a lot of example apps * Add some dependencies to tracing * Make sure no unused member error * Another update for tracing disabled * Restyle * Scope the macros a bit more * Restyle * Only build tracing tests if tracing is enabled on the platform * Restyle * Enable tracing on linux using a different logic - all linux builds have tracing by default * Restyle * Fix check_includes_config * Add a string splitter class * Switch to use the support string splitter class * Use standard command argument handling for CSV string vector * Support optional string vector arguments * Fix typo * Do not fail on stringop-truncation in tests * Fix initialization of mData for null cases for stringsplitter * Restyled by clang-format * Add more unit tests and ensure final empty element is emitted * Restyled by clang-format * separator should be const * Restyled by clang-format * Review comment: use char span * Use char span for string splitting * Restyled by clang-format * Restyled by clang-format * Force a static cast for size compares * make linter happy * Restyled by clang-format --------- Co-authored-by: Andrei Litvin <[email protected]> Co-authored-by: Restyled.io <[email protected]>
- Loading branch information
Showing
28 changed files
with
604 additions
and
22 deletions.
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
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
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
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
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
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
Oops, something went wrong.