Skip to content

Commit

Permalink
Show the state in the CPU Slice selection view.
Browse files Browse the repository at this point in the history
It is always "Running", but this makes the UI match up more with the
thread state selection view, where it varies.
  • Loading branch information
pmuetschard committed Jun 12, 2019
1 parent 8cda86f commit 636e1e9
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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));

Expand Down

0 comments on commit 636e1e9

Please sign in to comment.