Search in sources :

Example 1 with ToggleMethodProfilingAction

use of com.android.tools.idea.ddms.actions.ToggleMethodProfilingAction 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)

Aggregations

BrowserHelpAction (com.android.tools.idea.actions.BrowserHelpAction)1 ToggleMethodProfilingAction (com.android.tools.idea.ddms.actions.ToggleMethodProfilingAction)1 RecordingAction (com.android.tools.idea.monitor.actions.RecordingAction)1 DefaultActionGroup (com.intellij.openapi.actionSystem.DefaultActionGroup)1 Separator (com.intellij.openapi.actionSystem.Separator)1 NotNull (org.jetbrains.annotations.NotNull)1