CpuMonitor extends ProfilerMonitor { @Override public String getName() { return "CPU"; } CpuMonitor(@NotNull StudioProfilers profilers); @Override String getName(); @Override TooltipModel buildTooltip(); @Override void exit(); @Override void enter(); @Override void expand(); @NotNull AxisComponentModel getCpuUsageAxis(); @NotNull Legends getLegends(); @NotNull CpuUsage getThisProcessCpuUsage(); @NotNull Legends getTooltipLegends();  }
@Test public void testName() { StudioProfilers profilers = new StudioProfilers(new ProfilerClient(myGrpcChannel.getName()), new FakeIdeProfilerServices(), new FakeTimer()); CpuMonitor monitor = new CpuMonitor(profilers); assertEquals("CPU", monitor.getName()); }