Fix last query not closed in profiler
This commit is contained in:
parent
16a3e7630c
commit
d109e4739e
@ -38,6 +38,7 @@ public class DetailedProfiler implements AppProfiler {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void appStep(AppStep step) {
|
public void appStep(AppStep step) {
|
||||||
|
|
||||||
curAppPath = step.name();
|
curAppPath = step.name();
|
||||||
|
|
||||||
if (step == AppStep.BeginFrame) {
|
if (step == AppStep.BeginFrame) {
|
||||||
@ -102,7 +103,10 @@ public class DetailedProfiler implements AppProfiler {
|
|||||||
private void closeFrame() {
|
private void closeFrame() {
|
||||||
//close frame
|
//close frame
|
||||||
if (data != null) {
|
if (data != null) {
|
||||||
|
if (ongoingGpuProfiling && renderer != null) {
|
||||||
|
renderer.stopProfiling();
|
||||||
|
ongoingGpuProfiling = false;
|
||||||
|
}
|
||||||
prevPath = null;
|
prevPath = null;
|
||||||
|
|
||||||
for (StatLine statLine : data.values()) {
|
for (StatLine statLine : data.values()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user