[fuchsia importer] Import async events from Fuchsia traces

Also updates the existing slices smoke test to separate the slice counts
by both ref_type and depth.

Change-Id: I0dc544b6f04028e861e5f534f9efa7facb7b6449
diff --git a/test/trace_processor/fuchsia_smoke_slices.out b/test/trace_processor/fuchsia_smoke_slices.out
index 8a4c9dc..45dc8fa 100644
--- a/test/trace_processor/fuchsia_smoke_slices.out
+++ b/test/trace_processor/fuchsia_smoke_slices.out
@@ -1,3 +1,3 @@
-"depth","count"
-0,1153
-1,5
+"ref_type","depth","count"
+"utid",0,1153
+"utid",1,5
diff --git a/test/trace_processor/fuchsia_workstation_smoke_slices.out b/test/trace_processor/fuchsia_workstation_smoke_slices.out
new file mode 100644
index 0000000..bb4c9a2
--- /dev/null
+++ b/test/trace_processor/fuchsia_workstation_smoke_slices.out
@@ -0,0 +1,24 @@
+"ref_type","depth","count"
+"global_async_track",0,84
+"global_async_track",1,14
+"global_async_track",2,2
+"utid",0,13379
+"utid",1,11548
+"utid",2,10181
+"utid",3,1927
+"utid",4,4001
+"utid",5,2543
+"utid",6,1856
+"utid",7,2209
+"utid",8,2200
+"utid",9,1672
+"utid",10,353
+"utid",11,331
+"utid",12,304
+"utid",13,246
+"utid",14,207
+"utid",15,175
+"utid",16,114
+"utid",17,38
+"utid",18,12
+"utid",19,1
diff --git a/test/trace_processor/index b/test/trace_processor/index
index ab34397..d998e62 100644
--- a/test/trace_processor/index
+++ b/test/trace_processor/index
@@ -7,6 +7,7 @@
 ../data/fuchsia_trace.fxt smoke_slices.sql fuchsia_smoke_slices.out
 ../data/fuchsia_trace.fxt smoke_instants.sql fuchsia_smoke_instants.out
 ../data/fuchsia_trace.fxt smoke_counters.sql fuchsia_smoke_counters.out
+../data/fuchsia_workstation.fxt smoke_slices.sql fuchsia_workstation_smoke_slices.out
 
 # Test for the process<>thread tracking logic.
 synth_process_tracking.py process_tracking.sql process_tracking.out
diff --git a/test/trace_processor/sfgate_smoke_slices.out b/test/trace_processor/sfgate_smoke_slices.out
index 9f6ba8c..0991789 100644
--- a/test/trace_processor/sfgate_smoke_slices.out
+++ b/test/trace_processor/sfgate_smoke_slices.out
@@ -1,11 +1,11 @@
-"depth","count"
-0,13359
-1,19447
-2,5816
-3,829
-4,191
-5,94
-6,57
-7,19
-8,14
-9,2
+"ref_type","depth","count"
+"utid",0,13359
+"utid",1,19447
+"utid",2,5816
+"utid",3,829
+"utid",4,191
+"utid",5,94
+"utid",6,57
+"utid",7,19
+"utid",8,14
+"utid",9,2
diff --git a/test/trace_processor/smoke_slices.sql b/test/trace_processor/smoke_slices.sql
index 9f8dce2..6e31454 100644
--- a/test/trace_processor/smoke_slices.sql
+++ b/test/trace_processor/smoke_slices.sql
@@ -1 +1 @@
-select depth, count(*) as count from slices group by depth order by depth;
+select ref_type, depth, count(*) as count from slices group by ref_type, depth order by ref_type, depth;