<p dir="auto">Just saw a Flutter demo which showed off the Performance Overlay in the Android Emulator.  While it works, it's not showing representative data. :)</p>
<p dir="auto">We should make it very obvious in the tool that the data there isn't useful.</p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/chinmaygarde/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/chinmaygarde">@chinmaygarde</a></p>
<p dir="auto">Add the following to a <code class="notranslate">flutter create</code> template app:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="      print(&quot;counter: ${_counter}&quot;);
      print(&quot;foo&quot;);"><pre class="notranslate"><code class="notranslate">      print("counter: ${_counter}");
      print("foo");
</code></pre></div>
<p dir="auto">In the setState call where the counter in incremented.</p>
<p dir="auto">You'll notice sometimes the logs come out twice:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="counter: 15
counter: 15
foo
counter: 16
foo
counter: 17
foo
counter: 18
foo
counter: 19
foo
counter: 20
foo
counter: 21
foo
counter: 21
foo"><pre class="notranslate"><code class="notranslate">counter: 15
counter: 15
foo
counter: 16
foo
counter: 17
foo
counter: 18
foo
counter: 19
foo
counter: 20
foo
counter: 21
foo
counter: 21
foo
</code></pre></div>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lukef/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lukef">@lukef</a> was seeing this as well</p>