diff options
Diffstat (limited to 'runtime/app_info.h')
| -rw-r--r-- | runtime/app_info.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/runtime/app_info.h b/runtime/app_info.h index 68f2c586da..0b8132aa6f 100644 --- a/runtime/app_info.h +++ b/runtime/app_info.h @@ -68,15 +68,29 @@ class AppInfo { const std::string& compilation_reason, const std::string& odex_status); - // Extracts the optimization status of the primary apk into the given arguments. + // Extracts the optimization status of the primary APK into the given arguments. // If there are multiple primary APKs registed via RegisterAppInfo, the method // will assign the status of the first APK, sorted by the location name. // - // Assigns "unknown" if there is no primary apk or the optimization status was + // Assigns "unknown" if there is no primary APK or the optimization status was // not set via RegisterOdexStatus, void GetPrimaryApkOptimizationStatus(std::string* out_compiler_filter, std::string* out_compilation_reason); + // Returns the reference profile path of the primary APK. + // If there are multiple primary APKs registed via RegisterAppInfo, the method + // will return the profile of the first APK, sorted by the location name. + // + // Returns an empty string if there is no primary APK. + std::string GetPrimaryApkReferenceProfile(); + + // Whether we've received a call to RegisterAppInfo. + bool HasRegisteredAppInfo(); + + // The registered code type for a given code path. Note that this will + // be kUnknown until an explicit registration for that path has been made. + CodeType GetRegisteredCodeType(const std::string& code_path); + private: // Encapsulates optimization information about a particular code location. struct CodeLocationInfo { |