[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:
BIN
metrics/tests/binary-size/macos-xcode11/expected.png
Normal file
BIN
metrics/tests/binary-size/macos-xcode11/expected.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 225 B |
19
metrics/tests/binary-size/macos-xcode11/metrics.json
Normal file
19
metrics/tests/binary-size/macos-xcode11/metrics.json
Normal 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
|
||||
]
|
||||
]
|
||||
}
|
||||
24
metrics/tests/binary-size/macos-xcode11/style.json
Normal file
24
metrics/tests/binary-size/macos-xcode11/style.json
Normal 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"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user