[metrics] Isolate binary size metrics

Will give us a better view of what changed and by how much. Otherwise
the test stops at the first failure.
This commit is contained in:
Thiago Marcos P. Santos
2019-11-27 23:33:49 +02:00
parent 09b724ea33
commit d13562252d
24 changed files with 231 additions and 106 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 225 B

View File

@@ -0,0 +1,19 @@
{
"file-size": [
[
"mbgl-glfw",
"/src/workspace/next-macos-xcode11-release/bin/mbgl-glfw",
5439932
],
[
"mbgl-offline",
"/src/workspace/next-macos-xcode11-release/bin/mbgl-offline",
5334136
],
[
"mbgl-render",
"/src/workspace/next-macos-xcode11-release/bin/mbgl-render",
5384420
]
]
}

View File

@@ -0,0 +1,24 @@
{
"version": 8,
"metadata": {
"test": {
"operations": [
["probeFileSize", "mbgl-glfw", "/src/workspace/next-macos-xcode11-release/bin/mbgl-glfw", 0.01],
["probeFileSize", "mbgl-offline", "/src/workspace/next-macos-xcode11-release/bin/mbgl-offline", 0.01],
["probeFileSize", "mbgl-render", "/src/workspace/next-macos-xcode11-release/bin/mbgl-render", 0.01]
],
"width": 64,
"height": 64
}
},
"sources": {},
"layers": [
{
"id": "background",
"type": "background",
"paint": {
"background-color": "green"
}
}
]
}