self.__intr = intr
self.__app_info = AppInfo.get_info(config['app_info'], self.__intr)
app_path = self.__app_info.get_path()
- if app_path in config['function_inst']:
+ if 'function_inst' in config and app_path in config['function_inst']:
self.__func_array = config['function_inst'][app_path]
else:
self.__func_array = None
def lib_list(self, libs_set=None):
app = ApplicationConfig('app', self.__settings['app'], self.__intr,
self.__denote)
+
+ if 'function_inst' not in self.__settings['app']:
+ return []
+
func_inst = self.__settings['app']['function_inst']
lib_dict = {}
features.extend(self.__features.resolve_features(probe_features))
- if app['function_inst'] is not None:
+ if app.get('function_inst') is not None:
features.append('FUNCTION_PROFILING')
if sampler is not None and any(sampler):