Search in sources :

Example 1 with ToggleDebugRender

use of com.android.tools.idea.monitor.memory.actions.ToggleDebugRender 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)

Aggregations

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