Search in sources :

Example 1 with RecordingAction

use of com.android.tools.idea.monitor.actions.RecordingAction in project android by JetBrains.

the class GpuMonitorView method getToolbarActions.

@Override
@NotNull
public ActionGroup getToolbarActions() {
    DefaultActionGroup group = new DefaultActionGroup();
    group.add(new RecordingAction(this));
    group.add(new Separator());
    group.add(new BrowserHelpAction("GPU monitor", PROFILING_URL));
    return group;
}
Also used : BrowserHelpAction(com.android.tools.idea.actions.BrowserHelpAction) RecordingAction(com.android.tools.idea.monitor.actions.RecordingAction) DefaultActionGroup(com.intellij.openapi.actionSystem.DefaultActionGroup) Separator(com.intellij.openapi.actionSystem.Separator) NotNull(org.jetbrains.annotations.NotNull)

Example 2 with RecordingAction

use of com.android.tools.idea.monitor.actions.RecordingAction in project android by JetBrains.

the class CpuMonitorView method getToolbarActions.

@Override
@NotNull
public ActionGroup getToolbarActions() {
    DefaultActionGroup group = new DefaultActionGroup();
    group.add(new RecordingAction(this));
    group.add(new Separator());
    group.add(new ToggleMethodProfilingAction(myProject, myDeviceContext));
    //group.add(new MyThreadDumpAction()); // thread dump -> systrace
    group.add(new Separator());
    group.add(new BrowserHelpAction("CPU monitor", "http://developer.android.com/r/studio-ui/am-cpu.html"));
    return group;
}
Also used : ToggleMethodProfilingAction(com.android.tools.idea.ddms.actions.ToggleMethodProfilingAction) BrowserHelpAction(com.android.tools.idea.actions.BrowserHelpAction) RecordingAction(com.android.tools.idea.monitor.actions.RecordingAction) DefaultActionGroup(com.intellij.openapi.actionSystem.DefaultActionGroup) Separator(com.intellij.openapi.actionSystem.Separator) NotNull(org.jetbrains.annotations.NotNull)

Example 3 with RecordingAction

use of com.android.tools.idea.monitor.actions.RecordingAction in project android by JetBrains.

the class MemoryMonitorView method getToolbarActions.

@Override
@NotNull
public ActionGroup getToolbarActions() {
    DefaultActionGroup group = new DefaultActionGroup();
    group.add(new RecordingAction(this));
    group.add(new Separator());
    group.add(new GcAction(myDeviceContext));
    group.add(new DumpHprofAction(myProject, myDeviceContext, myEvents));
    group.add(new ToggleAllocationTrackingAction(myProject, myDeviceContext, myEvents));
    group.add(new Separator());
    group.add(new BrowserHelpAction("Memory monitor", "http://developer.android.com/r/studio-ui/am-memory.html"));
    if (Boolean.getBoolean("studio.profiling.debug")) {
        group.addSeparator();
        group.add(new ToggleDebugRender(myTimelineComponent));
    }
    return group;
}
Also used : ToggleDebugRender(com.android.tools.idea.monitor.memory.actions.ToggleDebugRender) GcAction(com.android.tools.idea.ddms.actions.GcAction) DumpHprofAction(com.android.tools.idea.ddms.hprof.DumpHprofAction) BrowserHelpAction(com.android.tools.idea.actions.BrowserHelpAction) RecordingAction(com.android.tools.idea.monitor.actions.RecordingAction) DefaultActionGroup(com.intellij.openapi.actionSystem.DefaultActionGroup) Separator(com.intellij.openapi.actionSystem.Separator) ToggleAllocationTrackingAction(com.android.tools.idea.ddms.actions.ToggleAllocationTrackingAction) NotNull(org.jetbrains.annotations.NotNull)

Example 4 with RecordingAction

use of com.android.tools.idea.monitor.actions.RecordingAction in project android by JetBrains.

the class NetworkMonitorView method getToolbarActions.

@Override
@NotNull
public ActionGroup getToolbarActions() {
    DefaultActionGroup group = new DefaultActionGroup();
    group.add(new RecordingAction(this));
    group.add(new Separator());
    group.add(new BrowserHelpAction("Network monitor", "http://developer.android.com/r/studio-ui/am-network.html"));
    return group;
}
Also used : BrowserHelpAction(com.android.tools.idea.actions.BrowserHelpAction) RecordingAction(com.android.tools.idea.monitor.actions.RecordingAction) DefaultActionGroup(com.intellij.openapi.actionSystem.DefaultActionGroup) Separator(com.intellij.openapi.actionSystem.Separator) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

BrowserHelpAction (com.android.tools.idea.actions.BrowserHelpAction)4 RecordingAction (com.android.tools.idea.monitor.actions.RecordingAction)4 DefaultActionGroup (com.intellij.openapi.actionSystem.DefaultActionGroup)4 Separator (com.intellij.openapi.actionSystem.Separator)4 NotNull (org.jetbrains.annotations.NotNull)4 GcAction (com.android.tools.idea.ddms.actions.GcAction)1 ToggleAllocationTrackingAction (com.android.tools.idea.ddms.actions.ToggleAllocationTrackingAction)1 ToggleMethodProfilingAction (com.android.tools.idea.ddms.actions.ToggleMethodProfilingAction)1 DumpHprofAction (com.android.tools.idea.ddms.hprof.DumpHprofAction)1 ToggleDebugRender (com.android.tools.idea.monitor.memory.actions.ToggleDebugRender)1