tree: c762f4c6376ac83ae432936ad42c363b4eb67565 [path history] [tgz]
  1. tests/
  2. auditor_result.cc
  3. auditor_result.h
  4. BUILD.gn
  5. DEPS
  6. instance.cc
  7. instance.h
  8. README.md
  9. safe_list.txt
  10. traffic_annotation_auditor.cc
  11. traffic_annotation_auditor.h
  12. traffic_annotation_auditor_ui.cc
  13. traffic_annotation_auditor_unittest.cc
  14. traffic_annotation_exporter.cc
  15. traffic_annotation_exporter.h
  16. traffic_annotation_file_filter.cc
  17. traffic_annotation_file_filter.h
  18. traffic_annotation_id_checker.cc
  19. traffic_annotation_id_checker.h
tools/traffic_annotation/auditor/README.md

Network Traffic Annotation Auditor

This executable runs the clang tool for extraction of Network Traffic Annotations from chromium source code and collects and summarizes its outputs.

Usage

traffic_annotation_auditor [OPTION]... [path_filter]...

Extracts network traffic annotations from source files. If path filter(s) are specified, only those directories of the source will be analyzed. Run traffic_annotation_auditor --help for options.

Example: traffic_annotation_auditor --build-dir=out/Debug

The binaries of this file and the clang tool are checked out into tools/traffic_annotation/bin/[platform]. This is only done for Linux platform now and will be extended to other platforms later.

Running on Linux

Before running, you need to build the COMPLETE chromium.

Running on Windows

Before running, you need to build the COMPLETE chromium using clang with keeprsp switch as follows:

  1. gn args [build_dir, e.g. out\Debug]
  2. add is_clang=true to the opened text file and save and close it.
  3. ninja -C [build_dir] -d keeprsp