- 
Christian Fremerey authored
This reverts commit 53e1a9c3. Reason for revert: This appears to cause compile to fail on several Android builder bots, e.g. https://ci.chromium.org/buildbot/chromium.webrtc.fyi/Android%20Builder/16413 Original change's description: > Created @TraceEvent annotation and corresponding processor > > When a method has the @TraceEvent annotation, it will be transformed to include > TraceEvent.begin() and TraceEvent.end() at the start and end of the method. > The function body is moved to a new helper method, while the old function's new > body looks like the following: > ``` > TraceEvent.begin("Foo.bar"); > try { > wrappedByTraceEvent$bar(); > TraceEvent.end("Foo.bar"); > } catch (Throwable e) { > TraceEvent.end("Foo.bar"); > throw e; > } > ``` > > Used the following code to test building various methods: > ``` > @TraceEvent > public static void basic() {} > > @TraceEvent > public void takesArguments(boolean arg1, long arg2, float arg3) {} > > @TraceEvent > public int returnsPrimitive(int arg1, byte arg2, Object arg3, TraceEvent arg4) { > return 10; > } > > @TraceEvent > public Object returnsObject(char arg1, short arg2, double arg3) { > return null; > } > > @TraceEvent > public int throwsError() throws Exception { > throw new Exception(); > } > ``` > > Bug: 818267 > Change-Id: I11127203662bf84de4a890da29a09676e760e621 > Reviewed-on: https://chromium-review.googlesource.com/1066173 > Commit-Queue: Tiger Oakes <tigero@google.com> > Reviewed-by: Biao She <bshe@chromium.org> > Reviewed-by: agrieve <agrieve@chromium.org> > Reviewed-by: Eric Stevenson <estevenson@chromium.org> > Cr-Commit-Position: refs/heads/master@{#565624} TBR=bshe@chromium.org,agrieve@chromium.org,estevenson@chromium.org,tigero@google.com Change-Id: I211510f4d7e1d301ad8982f5190972730ddbec1f No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: 818267 Reviewed-on: https://chromium-review.googlesource.com/1092248Reviewed-by:
Christian Fremerey <chfremer@chromium.org> Commit-Queue: Christian Fremerey <chfremer@chromium.org> Cr-Commit-Position: refs/heads/master@{#565653}
7dcb3071