From 636e1e982ceb48a0ffcfb673f809dde0cbc3c7c6 Mon Sep 17 00:00:00 2001 From: Pascal Muetschard Date: Tue, 11 Jun 2019 14:32:02 -0700 Subject: [PATCH] Show the state in the CPU Slice selection view. It is always "Running", but this makes the UI match up more with the thread state selection view, where it varies. --- .../google/gapid/perfetto/views/CpuSliceSelectionView.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gapic/src/main/com/google/gapid/perfetto/views/CpuSliceSelectionView.java b/gapic/src/main/com/google/gapid/perfetto/views/CpuSliceSelectionView.java index d72539fdb9..5270de4bc2 100644 --- a/gapic/src/main/com/google/gapid/perfetto/views/CpuSliceSelectionView.java +++ b/gapic/src/main/com/google/gapid/perfetto/views/CpuSliceSelectionView.java @@ -21,6 +21,7 @@ import static com.google.gapid.widgets.Widgets.withLayoutData; import static com.google.gapid.widgets.Widgets.withSpans; +import com.google.gapid.perfetto.ThreadState; import com.google.gapid.perfetto.models.CpuTrack; import com.google.gapid.perfetto.models.ProcessInfo; import com.google.gapid.perfetto.models.ThreadInfo; @@ -58,6 +59,9 @@ public CpuSliceSelectionView(Composite parent, State state, CpuTrack.Slice slice createLabel(this, thread.getDisplay()); } + createLabel(this, "State:"); + createLabel(this, ThreadState.RUNNING.label); + createLabel(this, "CPU:"); createLabel(this, Integer.toString(slice.cpu + 1));