Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
polina-c committed Apr 26, 2024
1 parent d8a61c5 commit bbbe855
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ class MemoryController extends DisposableController
@visibleForTesting DiffPaneController? connectedDiff,
@visibleForTesting ProfilePaneController? connectedProfile,
}) {
print('!!!!!!!!! creating MemoryController');
if (connectedDiff != null || connectedProfile != null) {
_mode = DevToolsMode.connected;
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ class MemoryChartPaneController extends DisposableController
} else {
assert(offlineData!.isDeviceAndroid != null);
data = offlineData!;
_paused.value = false;
recomputeChartData();
}

Expand All @@ -65,14 +66,7 @@ class MemoryChartPaneController extends DisposableController
() => unawaited(_onChartVisibilityChanged()),
);

if (mode == DevToolsMode.offlineData) {
_paused.value = false;
// data.timeline.notifyAboutAllSamples();
recomputeChartData();
print('!!! sent notifyAboutAllSamples and recomputeChartData');
}
_initialized.complete();
print('!!! MemoryChartPaneController init');
}

late final EventChartController event =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ class AndroidChartController extends ChartController {
name: 'Android',
sharedLabelTimestamps: sharedLabels,
) {
_setupTraces();
setupData();

addAutoDisposeListener(memoryTimeline.sampleAdded, () {
Expand All @@ -52,6 +51,7 @@ class AndroidChartController extends ChartController {
/// Preload any existing data collected but not in the chart.
@override
void setupData() {
_setupTraces();
// Only display if traces have been created. Android memory may not
// have been toggled to be displayed - yet.
if (traces.isNotEmpty) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ class EventChartController extends ChartController {
displayXLabels: false,
name: 'Event Pane',
) {
_setupTraces();
setFixedYRange(_Sizes.visibleVm, _Sizes.extensions);
setupData();

Expand All @@ -75,6 +74,7 @@ class EventChartController extends ChartController {

@override
void setupData() {
_setupTraces();
final chartDataLength = timestampsLength;
final dataLength = memoryTimeline.data.length;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ class _Colors {
class VMChartController extends ChartController {
VMChartController(this.memoryTimeline, {required this.paused})
: super(name: 'VM Memory') {
_setupTraces();
setupData();

addAutoDisposeListener(memoryTimeline.sampleAdded, () {
Expand All @@ -42,6 +41,7 @@ class VMChartController extends ChartController {

@override
void setupData() {
_setupTraces();
final chartDataLength = timestampsLength;
final dataLength = memoryTimeline.data.length;

Expand Down

0 comments on commit bbbe855

Please sign in to comment.