minor #36972 [WebProfilerBundle] changed label of memory usage in time panel (Mb into MiB) (Lozik)

This PR was merged into the 4.4 branch.

Discussion
----------

[WebProfilerBundle] changed label of memory usage in time panel (Mb into MiB)

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #36533
| License       | MIT
| Doc PR        | -

This PR fixes the memory usage labels in the time panel of the web profiler for 4.4+. PR #36571 already fixed this for 3.4 but since the time panel has been rewritten in 4.3, that minor fix has not correctly been transferred into 4.4+.

Commits
-------

a91204a79d [WebProfilerBundle] changed label of memory usage in time panel (Mb into MiB)
This commit is contained in:
Fabien Potencier 2020-05-26 18:21:35 +02:00
commit 9f52228d86
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ class TimelineEngine {
createLabel(name, duration, memory, period) {
const label = this.renderer.createText(name, period.start * this.scale, this.labelY, 'timeline-label');
const sublabel = this.renderer.createTspan(` ${duration} ms / ${memory} Mb`, 'timeline-sublabel');
const sublabel = this.renderer.createTspan(` ${duration} ms / ${memory} MiB`, 'timeline-sublabel');
label.appendChild(sublabel);