commit | ccaf6dbd5c6e94ab46ed9473033bb380c93e5063 | [log] [tgz] |
---|---|---|
author | Primiano Tucci <primiano@google.com> | Tue Jan 05 22:32:26 2021 +0100 |
committer | Primiano Tucci <primiano@google.com> | Wed Jan 06 22:48:08 2021 +0000 |
tree | b04484b4bce94838223135811698c6d444416f99 | |
parent | 7f2db542af0fae7d4f406a316ab088554bb33fde [diff] |
Win port: add base::getopt_compat Windows doesn't have <getopt.h> but all our executable these days depend on it. We have two roads ahead: 1. Create an abstraction layer, like base::ArgParsers to deal with cmdline parsing. 2. Create a getopt emulation for Windows. 1 is too much risk and too much effort. On Android our cmdline is de-facto an API, we can't risk subtle breakages. Instead it's easier and lower risk to create a getopt emulation for Windows. This CL also introduces a test that checks that the behavior of the two is consistent. Bug: 174454879 Test: perfetto_unittests --gtest_filter=GetOpt* Change-Id: I68752e615ad0aaf24226ddbce0d7ba77140bdca9
Perfetto is a production-grade open-source stack for performance instrumentation and trace analysis. It offers services and libraries and for recording system-level and app-level traces, native + java heap profiling, a library for analyzing traces using SQL and a web-based UI to visualize and explore multi-GB traces.
See https://perfetto.dev/docs or the /docs/ directory for documentation.