Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
polina-c committed Apr 25, 2024
1 parent 6eb8409 commit 7dbb3e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ import '../../data/charts.dart';

class VMChartController extends ChartController {
VMChartController(this.memoryTimeline, {required this.paused})
: super(name: 'VM Memory');
: super(name: 'VM Memory') {
setupTraces();
setupData();
}

final ValueListenable<bool> paused;
final MemoryTimeline memoryTimeline;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ class MemoryVMChartState extends State<MemoryVMChart> with AutoDisposeMixin {
void _init() {
cancelListeners();

widget.chart.setupTraces();
widget.chart.setupData();

addAutoDisposeListener(_memoryTimeline.sampleAddedNotifier, () {
if (_memoryTimeline.sampleAddedNotifier.value != null) {
setState(() {
Expand Down

0 comments on commit 7dbb3e2

Please sign in to comment.