From b323a5ed1f26a5b8e4e9f8f78225bdf95dc5a177 Mon Sep 17 00:00:00 2001 From: Mike Klein Date: Mon, 24 Jul 2017 15:21:31 -0400 Subject: sprinkle more tracing in GM, tests, and ok, and add TRACE_FUNC Change-Id: I562d438bd65e9fd900cfc6831f971b4af25c8ae6 Reviewed-on: https://skia-review.googlesource.com/26361 Reviewed-by: Brian Osman Commit-Queue: Mike Klein --- tests/Test.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'tests/Test.h') diff --git a/tests/Test.h b/tests/Test.h index db2552b614..c9a381eb12 100644 --- a/tests/Test.h +++ b/tests/Test.h @@ -7,10 +7,11 @@ #ifndef skiatest_Test_DEFINED #define skiatest_Test_DEFINED -#include "SkString.h" #include "../tools/Registry.h" -#include "SkTypes.h" #include "SkClipOpPriv.h" +#include "SkString.h" +#include "SkTraceEvent.h" +#include "SkTypes.h" #if SK_SUPPORT_GPU #include "GrContextFactory.h" @@ -94,6 +95,11 @@ struct Test { const char* name; bool needsGpu; TestProc proc; + + void run(skiatest::Reporter* r, sk_gpu_test::GrContextFactory* factory) const { + TRACE_EVENT1("test", TRACE_FUNC, "name", this->name/*these are static*/); + this->proc(r, factory); + } }; typedef sk_tools::Registry TestRegistry; -- cgit v1.2.3