tuningfork icon indicating copy to clipboard operation
tuningfork copied to clipboard

I can't see the LoadingTime record in the dashboard

Open ShockRabbit opened this issue 2 years ago • 2 comments

Hi

I used android performance tuner 1.5.2 version

create custom Annotation and record LoadingGroup and LoadingTime

like this


            // StartLoadingGroup
            LoadingTimeMetadata groupMetadata = new LoadingTimeMetadata() {
                state = LoadingTimeMetadata.LoadingState.FirstRun,
                source = LoadingTimeMetadata.LoadingSource.UnknownSource,
            };
            var groupResult = Tuner?.StartLoadingGroup(groupMetadata, null);


            // StartRecordingLoadingTime
            LoadingTimeMetadata metadata = new LoadingTimeMetadata() {
                state = LoadingTimeMetadata.LoadingState.FirstRun,
                source = LoadingTimeMetadata.LoadingSource.UnknownSource,
            };
            Annotation annotation = new Annotation() {
                PlatformInit = PhaseNameToEnum(phaseName)
            };
            var result = Tuner?.StartRecordingLoadingTime(metadata, annotation);


            // StopRecordingLoadingTime
            var stopErrorCode = Tuner?.StopRecordingLoadingTime(result.value);


            // StopLoadingGroup
            var stopErrorCode = Tuner.StopLoadingGroup(groupResult.value);


and since the release product, I can see the frame, but not the LoadingTime record in the dashboard

my guess is that tuningfork.proto is missing from the Unity Package, and that in order to make ProjectData.hasLoadingState true,

we need to modify the LoadingAnnotationIndex in tuningfork.proto and compile via protoc

tuningfork.proto's LoadingAnnotationIndex to make ProjectData.hasLoadingState true.

but for now, ProjectData.hasLoadingState is false.

Am I missing something?

ShockRabbit avatar Aug 14 '23 04:08 ShockRabbit

Bump. Same issue for us.

calumma-robert avatar May 24 '24 13:05 calumma-robert

Same issue for us

vvhustle avatar Aug 23 '24 02:08 vvhustle