aboutsummaryrefslogtreecommitdiff
path: root/docs/BUILD.gn
diff options
context:
space:
mode:
authorWyatt Hepler <hepler@google.com>2020-01-03 09:54:58 -0800
committerWyatt Hepler <hepler@google.com>2020-01-09 14:26:14 -0800
commit80c6ee51d4ea0a8eb67e2b0a330f30bd3a4eb03e (patch)
tree12036046cca9ceb239ab4e6e9ec26a896ab3dd80 /docs/BUILD.gn
parentb8b01e3a5e21af7dbef199b0faecefa29671acc9 (diff)
downloadpigweed-80c6ee51d4ea0a8eb67e2b0a330f30bd3a4eb03e.tar.gz
pw_tokenizer: Replace string literals with tokens
pw_tokenizer provides macros that replace printf-style string literals with 32-bit hashes at compile time. The string literals are removed from the resulting binary, which dramatically reduces the binary size. Like any printf-style string, binary versions of the strings can be formatted with arguments and then transmitted or stored. The pw_tokenizer module is general purpose, but its most common use case is binary logging. In binary logging, human-readable text logs are replaced with binary tokens. These are decoded off-device. This commit includes the C and C++ code for tokenizing strings. It also includes a C++ library for decoding tokenized strings. Change-Id: I6d5737ab2d6dfdd76dcf70c852b547fdcd68d683
Diffstat (limited to 'docs/BUILD.gn')
-rw-r--r--docs/BUILD.gn1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/BUILD.gn b/docs/BUILD.gn
index d4c376717..050b3266e 100644
--- a/docs/BUILD.gn
+++ b/docs/BUILD.gn
@@ -57,5 +57,6 @@ pw_doc_gen("docs") {
"$dir_pw_status:docs",
"$dir_pw_string:docs",
"$dir_pw_target_runner:docs",
+ "$dir_pw_tokenizer:docs",
]
}