컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
TFSettings
#include <tuningfork.h>
초기화 설정에서는 사용되지 않는 값을 0으로 맞춥니다.
요약
공개 속성
endpoint_uri_override
const char * TFSettings::endpoint_uri_override
매개변수, 업로드 및 디버그 요청을 위해 Tuning Fork가 연결할 엔드포인트를 포함하는 문자열이며 null로 끝납니다.
이 속성은 설정 proto의 base_uri 값을 재정의하며, 디버깅 목적으로만 사용하기 위한 것입니다.
fidelity_params_callback
ProtoCallback TFSettings::fidelity_params_callback
설정되면 콜백하며, 이는 다운로드된 충실도 매개변수를 사용하여 호출됩니다.
설정되지 않으면 TuningFork_getFidelityParameters를 직접 호출해야 합니다.
persistent_cache
const TFCache * TFSettings::persistent_cache
업로드 데이터 지속성에 사용할 캐시 객체입니다.
설정되지 않으면 데이터가 /data/local/tmp/tuningfork에 유지됩니다.
swappy_tracer_fn
SwappyTracerFn TFSettings::swappy_tracer_fn
Swappy_injectTracers 함수의 주소입니다.
이 속성이 설정되어 있지 않으면 TuningFork_tick을 직접 호출해야 합니다. 이 속성이 설정되어 있으면 4개 계측 키의 원격 분석이 자동으로 기록됩니다.
swappy_version
uint32_t TFSettings::swappy_version
swappy_tracer_fn의 출처인 Swappy 버전입니다.
training_fidelity_params
const CProtobufSerialization * TFSettings::training_fidelity_params
학습을 위해 업로드할 충실도 매개변수를 포함하는 직렬화된 protobuf입니다.
학습 모드를 사용하지 않는다면 이 속성을 nullptr로 설정합니다. 이러한 매개변수가 있으며 성공적으로 다운로드되거나 저장된 매개변수가 없다면 APK에서 로드된 기본 매개변수 대신 사용됩니다.
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2023-09-20(UTC)
[null,null,["최종 업데이트: 2023-09-20(UTC)"],[],[],null,["# TFSettings Struct Reference\n\nTFSettings\n==========\n\n`#include \u003ctuningfork.h\u003e`\n\nInitialization settings Zero any values that are not being used.\n\nSummary\n-------\n\n| ### Public attributes ||\n|-------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [endpoint_uri_override](#struct_t_f_settings_1a88e9ace6b6d25dfdf6ee281f1840ace3) | `const char *` A null-terminated string containing the endpoint that Tuning Fork will connect to for parameter, upload and debug requests. |\n| [fidelity_params_callback](#struct_t_f_settings_1a89cd30d7f2359b54c20ac53aca6aa629) | [ProtoCallback](/games/sdk/reference/performance-tuner/custom-engine/group/tuningfork#group__tuningfork_1gaf780faded2692da73f8d7ee37499d171) Callback If set, this is called with the fidelity parameters that are downloaded. |\n| [persistent_cache](#struct_t_f_settings_1a25e55876c9296aaec34b4dbb8772ceba) | `const `[TFCache](/games/sdk/reference/performance-tuner/custom-engine/struct/t-f-cache#struct_t_f_cache)` *` Cache object to be used for upload data persistence. |\n| [swappy_tracer_fn](#struct_t_f_settings_1a3ca27ab14efce1c40d4b70f8e567da33) | [SwappyTracerFn](/games/sdk/reference/performance-tuner/custom-engine/group/tuningfork#group__tuningfork_1ga43b1819af457676a72f228c08068fed4) The address of the Swappy_injectTracers function. |\n| [swappy_version](#struct_t_f_settings_1a5c2d98b44ddf8084bc7ef9eff516d451) | `uint32_t` The version of Swappy that swappy_tracer_fn comes from. |\n| [training_fidelity_params](#struct_t_f_settings_1a3ab649a2ec035694d4b035b742d56dd9) | `const `[CProtobufSerialization](/games/sdk/reference/performance-tuner/custom-engine/struct/c-protobuf-serialization#struct_c_protobuf_serialization)` *` A serialized protobuf containing the fidelity parameters to be uploaded for training. |\n\nPublic attributes\n-----------------\n\n### endpoint_uri_override\n\n```gdscript\nconst char * TFSettings::endpoint_uri_override\n``` \nA null-terminated string containing the endpoint that Tuning Fork will connect to for parameter, upload and debug requests.\n\nThis overrides the value in base_uri in the settings proto and is intended for debugging purposes only. \n\n### fidelity_params_callback\n\n```scdoc\nProtoCallback TFSettings::fidelity_params_callback\n``` \nCallback If set, this is called with the fidelity parameters that are downloaded.\n\nIf unset, you need to call TuningFork_getFidelityParameters yourself. \n\n### persistent_cache\n\n```gdscript\nconst TFCache * TFSettings::persistent_cache\n``` \nCache object to be used for upload data persistence.\n\nIf unset, data is persisted to /data/local/tmp/tuningfork \n\n### swappy_tracer_fn\n\n```scdoc\nSwappyTracerFn TFSettings::swappy_tracer_fn\n``` \nThe address of the Swappy_injectTracers function.\n\nIf this is unset, you need to call TuningFork_tick yourself. If it is set, telemetry for 4 instrument keys is automatically recorded. \n\n### swappy_version\n\n```scdoc\nuint32_t TFSettings::swappy_version\n``` \nThe version of Swappy that swappy_tracer_fn comes from. \n\n### training_fidelity_params\n\n```gdscript\nconst CProtobufSerialization * TFSettings::training_fidelity_params\n``` \nA serialized protobuf containing the fidelity parameters to be uploaded for training.\n\nSet this to nullptr if you are not using training mode. Note that these are used instead of the default parameters loaded from the APK, if they are present and there are neither a successful download nor saved parameters."]]