devtools icon indicating copy to clipboard operation
devtools copied to clipboard

Memory > Allocation Tracing: checkboxes are not clickable in profile mode

Open polina-c opened this issue 3 years ago • 1 comments

For profile mode we need to show empty tab with message like 'Run application in debug mode to enable allocation tracing'.

#0      _MemoryChartPaneState.didChangeDependencies.<anonymous closure> (package:devtools_app/src/screens/memory/panes/chart/chart_pane.dart:119:46)
package:devtools_app/src/screens/memory/panes/chart/chart_pane.dart:119
#3      ChartState.build.<anonymous closure>.<anonymous closure> (package:devtools_app/src/charts/chart.dart:105:36)
package:devtools_app/src/charts/chart.dart:105
#3      VmServiceWrapper.setTraceClassAllocation (package:devtools_app/src/service/vm_service_wrapper.dart:660:18)
#4      AllocationProfileTracingIsolateState.setAllocationTracingForClass (package:devtools_app/src/screens/memory/panes/allocation_tracing/allocation_profile_tracing_view_controller.dart:173:21)
#5      AllocationProfileTracingViewController.setAllocationTracingForClass (package:devtools_app/src/screens/memory/panes/allocation_tracing/allocation_profile_tracing_view_controller.dart:316:33)
#6      _TraceCheckBoxColumn.build.<anonymous closure> (package:devtools_app/src/screens/memory/panes/allocation_tracing/allocation_profile_class_table.dart:46:26)
#3      VmServiceWrapper.setTraceClassAllocation (package:devtools_app/src/service/vm_service_wrapper.dart:660:18)
#4      AllocationProfileTracingIsolateState.setAllocationTracingForClass (package:devtools_app/src/screens/memory/panes/allocation_tracing/allocation_profile_tracing_view_controller.dart:173:21)
#5      AllocationProfileTracingViewController.setAllocationTracingForClass (package:devtools_app/src/screens/memory/panes/allocation_tracing/allocation_profile_tracing_view_controller.dart:316:33)
#6      _TraceCheckBoxColumn.build.<anonymous closure> (package:devtools_app/src/screens/memory/panes/allocation_tracing/allocation_profile_class_table.dart:46:26)
#3      VmServiceWrapper.setTraceClassAllocation (package:devtools_app/src/service/vm_service_wrapper.dart:660:18)

polina-c avatar Oct 08 '22 22:10 polina-c

@bkonyi

polina-c avatar Oct 08 '22 22:10 polina-c

We're getting a Compiler is disabled in AOT mode response to setTraceClassAllocation, but it's not clear why we need a compiler available to enable tracing here. I'm following up with @rmacnak-google to determine whether or not enabling tracing requires code to be generated at runtime.

bkonyi avatar Nov 21 '22 16:11 bkonyi

This should be resolved. See https://github.com/flutter/devtools/pull/7058

bkonyi avatar Jan 23 '24 19:01 bkonyi