Skip to content

Commit be82430

Browse files
authored
Merge pull request #186 from bugsnag/releases/v1.9.0
Release v1.9.0
2 parents 3e71d9e + dcfd594 commit be82430

File tree

89 files changed

+2391
-435
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+2391
-435
lines changed

.buildkite/pipeline.full.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ steps:
77
commands:
88
- buildkite-agent pipeline upload .buildkite/unity.2020.full.yml
99

10-
- label: 'Append Unity 2021 Full Pipeline'
11-
timeout_in_minutes: 2
12-
commands:
13-
- buildkite-agent pipeline upload .buildkite/unity.2021.full.yml
10+
# - label: 'Append Unity 2021 Full Pipeline'
11+
# timeout_in_minutes: 2
12+
# commands:
13+
# - buildkite-agent pipeline upload .buildkite/unity.2021.full.yml
1414

1515
- label: 'Append Unity 2022 Full Pipeline'
1616
timeout_in_minutes: 2

.buildkite/pipeline.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,16 @@ aliases:
33
- &2020 "2020.3.48f1"
44

55
agents:
6-
queue: macos-14
6+
queue: macos-14-isolated
77

88
steps:
9+
- label: Verify code formatting
10+
timeout_in_minutes: 5
11+
env:
12+
UNITY_PERFORMANCE_VERSION: *2021
13+
commands:
14+
- rake code:verify
15+
916
- label: Build released library artifact
1017
timeout_in_minutes: 10
1118
key: build-artifacts
@@ -20,20 +27,25 @@ steps:
2027
automatic:
2128
- exit_status: '*'
2229
limit: 1
30+
agents:
31+
queue: macos-14-isolated
32+
concurrency: 1
33+
concurrency_group: "unity-license-server"
34+
concurrency_method: eager
2335

2436
- label: Build size impact reporting
2537
depends_on: build-artifacts
2638
timeout_in_minutes: 10
2739
env:
2840
UNITY_PERFORMANCE_VERSION: *2021
2941
plugins:
30-
'artifacts#v1.9.0':
42+
artifacts#v1.9.0:
3143
download:
3244
- upm-package.zip
3345
commands:
34-
features/scripts/do_size_test.sh
46+
- features/scripts/do_size_test.sh
3547

36-
- label: 'Append Unity 2021 Basic Pipeline'
48+
- label: Append Unity 2021 Basic Pipeline
3749
agents:
3850
queue: macos
3951
timeout_in_minutes: 2
@@ -44,4 +56,5 @@ steps:
4456
agents:
4557
queue: macos
4658
timeout_in_minutes: 2
47-
command: sh -c .buildkite/pipeline_trigger.sh
59+
commands:
60+
- sh -c .buildkite/pipeline_trigger.sh

.buildkite/unity.2020.full.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ aliases:
22
- &2020 "2020.3.48f1"
33

44
agents:
5-
queue: macos-14
5+
queue: macos-14-isolated
66

77
steps:
88
- group: ":hammer: Build Unity 2020 Test Fixtures"
@@ -125,6 +125,8 @@ steps:
125125
- group: ":test_tube: E2E Tests Unity 2020"
126126
steps:
127127
- label: Run MacOS e2e tests for Unity 2020
128+
agents:
129+
queue: macos-14-isolated
128130
timeout_in_minutes: 30
129131
depends_on: build-macos-fixture-2020
130132
env:

.buildkite/unity.2021.full.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ aliases:
22
- &2021 "2021.3.45f1"
33

44
agents:
5-
queue: macos-14
5+
queue: macos-14-isolated
66

77
steps:
88
- group: ":hammer: Build Unity 2021 Test Fixtures"
@@ -95,6 +95,8 @@ steps:
9595
limit: 1
9696

9797
- label: ':ios: Build iOS DEV test fixture for Unity 2021'
98+
agents:
99+
queue: macos-14-isolated
98100
timeout_in_minutes: 10
99101
key: build-ios-dev-fixture-2021
100102
depends_on: generate-dev-fixture-project-2021
@@ -119,6 +121,8 @@ steps:
119121
- group: ":test_tube: E2E Tests Unity 2021"
120122
steps:
121123
- label: Run WebGL DEV e2e tests for Unity 2021
124+
agents:
125+
queue: macos-14-isolated
122126
timeout_in_minutes: 20
123127
depends_on: build-webgl-dev-fixture-2021
124128
env:
@@ -181,6 +185,8 @@ steps:
181185
limit: 1
182186

183187
- label: Run MacOS DEV e2e tests for Unity 2021
188+
agents:
189+
queue: macos-14-isolated
184190
timeout_in_minutes: 30
185191
depends_on: build-macos-dev-fixture-2021
186192
env:

.buildkite/unity.2021.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ aliases:
22
- &2021 "2021.3.45f1"
33

44
agents:
5-
queue: macos-14
5+
queue: macos-14-isolated
66

77
steps:
88
- group: ":hammer: Build Unity 2021 Test Fixtures"
@@ -71,6 +71,11 @@ steps:
7171
automatic:
7272
- exit_status: '*'
7373
limit: 1
74+
agents:
75+
queue: macos-14-isolated
76+
concurrency: 1
77+
concurrency_group: "unity-license-server"
78+
concurrency_method: eager
7479

7580
- label: ':android: Build Android test fixture for Unity 2021'
7681
timeout_in_minutes: 10
@@ -93,6 +98,11 @@ steps:
9398
automatic:
9499
- exit_status: '*'
95100
limit: 1
101+
agents:
102+
queue: macos-14-isolated
103+
concurrency: 1
104+
concurrency_group: "unity-license-server"
105+
concurrency_method: eager
96106

97107
- label: ':ios: Generate Xcode project - Unity 2021'
98108
timeout_in_minutes: 10
@@ -141,6 +151,8 @@ steps:
141151
- group: ":test_tube: E2E Tests Unity 2021"
142152
steps:
143153
- label: Run WebGL e2e tests for Unity 2021
154+
agents:
155+
queue: macos-14-isolated
144156
timeout_in_minutes: 20
145157
depends_on: build-webgl-fixture-2021
146158
env:
@@ -185,6 +197,8 @@ steps:
185197
- features/scripts/run-windows-ci-tests.sh release
186198

187199
- label: Run MacOS e2e tests for Unity 2021
200+
agents:
201+
queue: macos-14-isolated
188202
timeout_in_minutes: 30
189203
depends_on: build-macos-fixture-2021
190204
env:

.buildkite/unity.2022.full.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
aliases:
2-
- &2022 "2022.3.57f1"
2+
- &2022 "2022.3.61f1"
33

44
agents:
5-
queue: macos-14
5+
queue: macos-14-isolated
66

77
steps:
88
- group: ":hammer: Build Unity 2022 Test Fixtures"
@@ -121,6 +121,8 @@ steps:
121121
- group: ":test_tube: E2E Tests Unity 2022"
122122
steps:
123123
- label: Run MacOS e2e tests for Unity 2022
124+
agents:
125+
queue: macos-14-isolated
124126
timeout_in_minutes: 30
125127
depends_on: build-macos-fixture-2022
126128
env:

.buildkite/unity.6000.full.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
aliases:
2-
- &6000 "6000.0.36f1"
2+
- &6000 "6000.0.47f1"
33

44
agents:
5-
queue: macos-14
5+
queue: macos-14-isolated
66

77
steps:
88
- group: ":hammer: Build Unity 6000 Test Fixtures"
@@ -121,6 +121,8 @@ steps:
121121
- group: ":test_tube: E2E Tests Unity 6000"
122122
steps:
123123
- label: Run MacOS e2e tests for Unity 6000
124+
agents:
125+
queue: macos-14-isolated
124126
timeout_in_minutes: 30
125127
depends_on: build-macos-fixture-6000
126128
env:

.github/ISSUE_TEMPLATE/A.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ labels: ''
77
assignees: ''
88

99
---
10-
Please checkout our [documentation](https://docs.bugsnag.com/performance/unity/) for guides, references and tutorials.
10+
Please check out our [documentation](https://docs.bugsnag.com/performance/unity/) for guides, references and tutorials.
1111

12-
If you have questions about your integration please contact us at [support@bugsnag.com](mailto:support@bugsnag.com).
12+
If you have questions about your integration, please contact us at [support@bugsnag.com](mailto:support@bugsnag.com).
1313

14-
Alternatively, view additional options at [support.md](../SUPPORT.md).
14+
Alternatively, view additional options at [SUPPORT.md](../SUPPORT.md).

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ assignees: ''
77

88
---
99

10-
<!-- Before raising, please check if somebody else has already reported your issue. -->
10+
<!-- Before raising, please check whether somebody else has already reported your issue. -->
1111

1212
### Describe the bug
1313
A clear and concise description of what the bug is.
@@ -24,7 +24,7 @@ A clear and concise description of what the bug is.
2424
* Unity version:
2525
* iOS/Android/macOS/Windows/browser version:
2626
* simulator/emulator or physical device:
27-
* Initializing bugSnag performance via a Unity GameObject or in code?:
27+
* Initializing BugSnag Performance via a Unity GameObject or in code?:
2828
* Player Settings:
2929
* Scripting backend (Mono or IL2CPP):
3030
* API compatibility level for .NET:
@@ -53,4 +53,4 @@ A clear and concise description of what the bug is.
5353
```
5454
5555
```
56-
</details>
56+
</details>

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ assignees: ''
77

88
---
99

10-
<!-- Before creating, please check if somebody else has already reported your feature request. -->
10+
<!-- Before creating, please check whether somebody else has already reported your feature request. -->
1111

1212
### Description
1313
<!-- Is your feature request related to a problem? Please describe.
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## Are you having trouble getting started?
2-
If you haven't already, please checkout our [documentation](https://docs.bugsnag.com/performance/unity/) for guides, references and tutorials.
2+
If you haven't already, please check out our [documentation](https://docs.bugsnag.com/performance/unity/) for guides, references and tutorials.
33

4-
Or, if you wish you can [contact us directly](mailto:support@bugsnag.com) for assistance on integrating BugSnag into your application, troubleshooting an issue or a question about our supported features.
4+
Or, if you wish, you can [contact us directly](mailto:support@bugsnag.com) for assistance on integrating BugSnag into your application, troubleshooting an issue, or if you have a question about our supported features.
55

66
When contacting support, please include as much information as necessary, including:
77

@@ -14,15 +14,15 @@ When contacting support, please include as much information as necessary, includ
1414
* Unity version:
1515
* iOS/Android/macOS/Windows/browser version:
1616
* simulator/emulator or physical device:
17-
* Initializing BugSnag performance via a Unity GameObject or in code?:
17+
* Initializing BugSnag Performance via a Unity GameObject or in code?:
1818
* Player Settings:
1919
* Scripting backend (Mono or IL2CPP):
2020
* API compatibility level for .NET:
2121
* Stack Trace level for all error types (None/ScriptOnly/Full):
2222

2323
## Bug or Feature Requests
24-
If you would like to raise a bug or feature request please do so by creating a [New Issue](https://github.com/bugsnag/bugsnag-unity-performance/issues/new/choose) and selecting bug or feature.
24+
If you would like to raise a bug or feature request, please do so by creating a [New Issue](https://github.com/bugsnag/bugsnag-unity-performance/issues/new/choose) and selecting bug or feature.
2525
Please note: we cannot promise that we will fulfil all requests
2626

2727
## Pull Requests
28-
If you have made a fix and would like to raise a pull request, please read our [CONTRIBUTING.md](../CONTRIBUTING.md) file before creating the pull request.
28+
If you have made a fix and would like to raise a pull request, please read our [CONTRIBUTING.md](../CONTRIBUTING.md) file before creating the pull request.

BugsnagPerformance/Assets/BugsnagPerformance/Editor/BugsnagPerformanceEditor.cs

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,16 +105,36 @@ private void DrawSettingsEditorWindow()
105105
DrawIntPropertyWithDefault(so, "AttributeArrayLengthLimit", "AttributeArrayLengthLimit", PerformanceConfiguration.DEFAULT_ATTRIBUTE_ARRAY_LENGTH_LIMIT);
106106
DrawIntPropertyWithDefault(so, "AttributeCountLimit", "AttributeCountLimit", PerformanceConfiguration.DEFAULT_ATTRIBUTE_COUNT_LIMIT);
107107
DrawIntPropertyWithDefault(so, "AttributeStringValueLimit", "AttributeStringValueLimit", PerformanceConfiguration.DEFAULT_ATTRIBUTE_STRING_VALUE_LIMIT);
108-
EditorGUILayout.PropertyField(so.FindProperty("AutoInstrumentRendering"));
109108
EditorGUILayout.PropertyField(so.FindProperty("AutoInstrumentAppStart"));
110109
EditorGUILayout.PropertyField(so.FindProperty("Endpoint"));
111110
EditorGUILayout.PropertyField(so.FindProperty("ServiceName"));
112111
EditorGUILayout.PropertyField(so.FindProperty("TracePropagationUrls"));
112+
DrawEnabledMetricsDropdown(so, settings);
113113
EditorGUI.indentLevel--;
114114
so.ApplyModifiedProperties();
115115
EditorUtility.SetDirty(settings);
116116
}
117117

118+
private void DrawEnabledMetricsDropdown(SerializedObject so, BugsnagPerformanceSettingsObject settings)
119+
{
120+
var style = new GUIStyle(GUI.skin.GetStyle("foldout"));
121+
style.margin = new RectOffset(2, 0, 0, 0);
122+
_showEnabledMetrics = EditorGUILayout.Foldout(_showEnabledMetrics, "Enabled Metrics", true, style);
123+
124+
if (_showEnabledMetrics)
125+
{
126+
EditorGUI.indentLevel += 2;
127+
var enabledMetricsProp = so.FindProperty("EnabledMetrics");
128+
var renderingProp = enabledMetricsProp.FindPropertyRelative("Rendering");
129+
EditorGUILayout.PropertyField(renderingProp, new GUIContent("Rendering"));
130+
renderingProp = enabledMetricsProp.FindPropertyRelative("CPU");
131+
EditorGUILayout.PropertyField(renderingProp, new GUIContent("CPU"));
132+
renderingProp = enabledMetricsProp.FindPropertyRelative("Memory");
133+
EditorGUILayout.PropertyField(renderingProp, new GUIContent("Memory"));
134+
EditorGUI.indentLevel -= 2;
135+
}
136+
}
137+
118138
private void DrawIntPropertyWithDefault(SerializedObject so, string propertyName, string label, int defaultValue)
119139
{
120140
var property = so.FindProperty(propertyName);

BugsnagPerformance/Assets/BugsnagPerformance/Editor/PlayerSettingsCompat.cs

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,44 +3,44 @@
33
using UnityEditor.Build;
44
#endif
55

6-
internal static class BugsnagPlayerSettingsCompat
6+
internal static class BugsnagPlayerSettingsCompat
7+
{
8+
// Get Scripting Backend
9+
public static ScriptingImplementation GetScriptingBackend(BuildTargetGroup buildTargetGroup)
710
{
8-
// Get Scripting Backend
9-
public static ScriptingImplementation GetScriptingBackend(BuildTargetGroup buildTargetGroup)
10-
{
1111
#if UNITY_2021_2_OR_NEWER
12-
return PlayerSettings.GetScriptingBackend(NamedBuildTarget.FromBuildTargetGroup(buildTargetGroup));
12+
return PlayerSettings.GetScriptingBackend(NamedBuildTarget.FromBuildTargetGroup(buildTargetGroup));
1313
#else
1414
return PlayerSettings.GetScriptingBackend(buildTargetGroup);
1515
#endif
16-
}
16+
}
1717

18-
public static string GetApplicationIdentifier(BuildTargetGroup buildTargetGroup)
19-
{
18+
public static string GetApplicationIdentifier(BuildTargetGroup buildTargetGroup)
19+
{
2020
#if UNITY_2021_2_OR_NEWER
21-
return PlayerSettings.GetApplicationIdentifier(NamedBuildTarget.FromBuildTargetGroup(buildTargetGroup));
21+
return PlayerSettings.GetApplicationIdentifier(NamedBuildTarget.FromBuildTargetGroup(buildTargetGroup));
2222
#else
2323
return PlayerSettings.GetApplicationIdentifier(buildTargetGroup);
2424
#endif
25-
}
25+
}
2626

27-
// Get Scripting Define Symbols
28-
public static string GetScriptingDefineSymbols(BuildTargetGroup buildTargetGroup)
29-
{
27+
// Get Scripting Define Symbols
28+
public static string GetScriptingDefineSymbols(BuildTargetGroup buildTargetGroup)
29+
{
3030
#if UNITY_2021_2_OR_NEWER
31-
return PlayerSettings.GetScriptingDefineSymbols(NamedBuildTarget.FromBuildTargetGroup(buildTargetGroup));
31+
return PlayerSettings.GetScriptingDefineSymbols(NamedBuildTarget.FromBuildTargetGroup(buildTargetGroup));
3232
#else
3333
return PlayerSettings.GetScriptingDefineSymbolsForGroup(buildTargetGroup);
3434
#endif
35-
}
35+
}
3636

37-
// Set Scripting Define Symbols
38-
public static void SetScriptingDefineSymbols(BuildTargetGroup buildTargetGroup, string defineSymbols)
39-
{
37+
// Set Scripting Define Symbols
38+
public static void SetScriptingDefineSymbols(BuildTargetGroup buildTargetGroup, string defineSymbols)
39+
{
4040
#if UNITY_2021_2_OR_NEWER
41-
PlayerSettings.SetScriptingDefineSymbols(NamedBuildTarget.FromBuildTargetGroup(buildTargetGroup), defineSymbols);
41+
PlayerSettings.SetScriptingDefineSymbols(NamedBuildTarget.FromBuildTargetGroup(buildTargetGroup), defineSymbols);
4242
#else
4343
PlayerSettings.SetScriptingDefineSymbolsForGroup(buildTargetGroup, defineSymbols);
4444
#endif
45-
}
4645
}
46+
}

0 commit comments

Comments
 (0)