commit | 1f06718b02f44c9c84c2988e1a559af3a89566b0 | [log] [tgz] |
---|---|---|
author | Lalit Maganti <lalitm@google.com> | Thu May 09 14:50:05 2019 +0100 |
committer | Lalit Maganti <lalitm@google.com> | Thu May 09 14:50:05 2019 +0100 |
tree | b871e7e6bade3c9155cdc70b6275d25fb9394e60 | |
parent | 39e59ec05db37c38bb5c564eddf6e3cfcd259b33 [diff] |
trace_processor: introduce status class to hold errors This class allows us to fold all our inconsistencies of returning bool, int and optional<string> into a single class. base::Optional<string> is really counter intutive because nullopt indicates success which is opposite to every other use of Optional. By wrapping this class, it makes it a lot more intuitive. This change also changes the API of trace processor to use this new API. Change-Id: Idc882b9f89aad6c04991e6e032b89a8f1d5b5abc
Perfetto is an open-source project for performance instrumentation and tracing of Linux/Android/Chrome platforms and user-space apps.
See www.perfetto.dev for docs.