-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #310 from bugsnag/PLAT-13071/strict-mode-fixes
Strict mode fixes
- Loading branch information
Showing
15 changed files
with
210 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...ures/fixtures/mazeracer/app/src/main/java/com/bugsnag/mazeracer/PerformanceTestUtils.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.bugsnag.mazeracer; | ||
|
||
import android.annotation.SuppressLint; | ||
|
||
import com.bugsnag.android.performance.BugsnagPerformance; | ||
import com.bugsnag.android.performance.internal.InstrumentedAppState; | ||
import com.bugsnag.android.performance.internal.SpanProcessor; | ||
import com.bugsnag.android.performance.internal.processing.Tracer; | ||
|
||
public class PerformanceTestUtils { | ||
private PerformanceTestUtils() { | ||
} | ||
|
||
/** | ||
* @noinspection KotlinInternalInJava | ||
*/ | ||
@SuppressLint("RestrictedApi") | ||
public static void flushBatch() { | ||
LogKt.log("PerformanceTestUtils.flushBatch()"); | ||
InstrumentedAppState appState = BugsnagPerformance.INSTANCE.getInstrumentedAppState$internal(); | ||
SpanProcessor processor = appState.getSpanProcessor(); | ||
|
||
if (processor instanceof Tracer) { | ||
Tracer tracer = (Tracer) processor; | ||
tracer.forceCurrentBatch(); | ||
} | ||
} | ||
} |
Oops, something went wrong.