CLI: add context switch and always features 34/161234/10
authorAlexander Aksenov <a.aksenov@samsung.com>
Tue, 21 Nov 2017 18:26:33 +0000 (21:26 +0300)
committerAlexander Aksenov <a.aksenov@samsung.com>
Tue, 28 Nov 2017 15:34:57 +0000 (18:34 +0300)
Change-Id: I91a8f38bd90a668d8420b7bdb4aa53e086810c2f
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
src/cli/example/example_conf.py
src/cli/swap_cli/config.py
src/cli/swap_cli/features/common.py

index 27d006da6e1f73243491e69740a2716d9f35fedb..04d28b6cc937cdaeba0417d420d670eff36fc592 100644 (file)
@@ -8,12 +8,17 @@ sampling = {
     "period": 50,
 }
 
-probe_features = [
+features = [
      'memory',
      'file',
      'network',
      'thread',
      'opengl',
+     'memory_for_all',
+     'file_for_all',
+     'network_for_all',
+     'thread_for_all',
+     'context_switch',
      'lsan'
 ]
 
index 1e77af4efc18546642d859f2f28b8d9da7df786a..ea99f674398807f586bba07ee992c85b4d2c5b82 100644 (file)
@@ -342,7 +342,7 @@ class Config:
 
         period_settings = self.__conf_by_name('period_settings')
         sampling = self.__conf_by_name('sampling')
-        probe_features = self.__conf_by_name('probe_features')
+        probe_features = self.__conf_by_name('features')
         app = self.__conf_by_name('app')
         features = self.__resolve_features(probe_features, sampling, app)
         instrumentation_config = {
index ab2adb377aa15f97d35edfee9c2c546838b0d43e..563836047423b6d07d37bab7a297999c9a121288 100644 (file)
@@ -9,6 +9,11 @@ class CommonFeature(feature.Feature):
         'network' : 'NETWORK_API_PROBING',
         'thread' : 'THREAD_API_PROBING',
         'opengl' : 'OPENGL_API_PROBING',
+        'memory_for_all' : 'MEMORY_ALLOC_ALWAYS_PROBING',
+        'file_for_all' : 'FILE_API_ALWAYS_PROBING',
+        'network_for_all': 'NETWORK_API_ALWAYS_PROBING',
+        'thread_for_all': 'THREAD_API_ALWAYS_PROBING',
+        'context_switch': 'CONTEXT_SWITCH'
     }
 
     @classmethod