OLD | NEW |
(Empty) | |
| 1 # Traffic Annotation Extrator |
| 2 This is a clang tool to extract network traffic annotations. The tool is run by |
| 3 `tools/traffic_annotation/traffic_annotaion_auditor`. Refer to it for help on |
| 4 how to use. |
| 5 |
| 6 # Build on Linux |
| 7 `tools/clang/scripts/update.py --bootstrap --force-local-build |
| 8 --without-android --extra-tools blink_gc_plugin plugins |
| 9 rewrite_to_chrome_style traffic_annotation_extractor` |
| 10 |
| 11 # Build on Window |
| 12 1. Either open a `VS2015 x64 Native Tools Command Prompt`, or open a normal |
| 13 command prompt and run `depot_tools\win_toolchain\vs_files\ |
| 14 $long_autocompleted_hash\win_sdk\bin\setenv.cmd /x64` |
| 15 2. Run python `tools/clang/scripts/update.py --bootstrap --force-local-build |
| 16 --without-android --extra-tools blink_gc_plugin plugins |
| 17 rewrite_to_chrome_style traffic_annotation_extractor` |
| 18 |
| 19 ## Usage |
| 20 traffic_annotation_extractor -p [build_dir] [file_path] [output_directory] |
| 21 Extracts network traffic annotations from |file_path|, based on build parameters |
| 22 in |build_dir|, and writes them as separate files in |output_directory|. |
| 23 Each output file will have the following format: |
| 24 - Line 1: File path. |
| 25 - Line 2: Name of the function in which annotation is defined. |
| 26 - Line 3: Line number of annotation. |
| 27 - Line 4: Name of the function that annoation is passed to. |
| 28 - Line 5: Possible errors. |
| 29 - Line 6: Unique id of annotation. |
| 30 - Line 7-: Serialized protobuf of the annotation. |
OLD | NEW |