commit | 3af7ce651f9fe85cdcf1ad6aeb16ab540f405fd3 | [log] [tgz] |
---|---|---|
author | Nikita Putikhin <nputikhin@google.com> | Tue Jul 18 17:01:36 2023 +0000 |
committer | Nikita Putikhin <nputikhin@google.com> | Wed Jul 19 14:07:11 2023 +0000 |
tree | 40484d205107060768313c24a81455ad16c38047 | |
parent | 01c69f9fbc561ba78ec7dbb4199775f8b3657b15 [diff] |
Add a benchmark for libatrace_rust The benchmark gives us data on relative performance of API wrappers vs calling the API directly. Right now it shows big overhead on atrace_begin with tracing disabled. This is expected - we always allocate a CString which is ignored if tracing is off. The perf issue will be fixed in the next commit. Bug: 289989828 Test: Run benchmarks on aosp_cf_x86_64_phone Change-Id: I25868b7724f70ac875ec1e8cbfb192e16cc7087c