aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJavi Merino <javi.merino@arm.com>2015-12-21 18:34:57 +0000
committerJavi Merino <javi.merino@arm.com>2015-12-22 16:03:11 +0000
commitfecb2676b883265a98e37deff1e4764337647c16 (patch)
tree57e136ae89d5082c0ae34ccedf07e70e75501515 /doc
parentbd089aeafb401464423047a5bb5116b0484ef7f8 (diff)
downloadtrappy-fecb2676b883265a98e37deff1e4764337647c16.tar.gz
dynamic: ensure dynamic methods refer to ftrace
Now that we can have traces coming from sources other than ftrace, rename register_dynamic() and register_class() to register_dynamic_ftrace() and register_ftrace_parser() to make it clear that they are only available for traces coming from ftrace.
Diffstat (limited to 'doc')
-rw-r--r--doc/Dynamic traces.ipynb8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/Dynamic traces.ipynb b/doc/Dynamic traces.ipynb
index 0270b3f..26385f6 100644
--- a/doc/Dynamic traces.ipynb
+++ b/doc/Dynamic traces.ipynb
@@ -34,7 +34,7 @@
"\n",
" kworker/6:1-457 [006] 144.439566: bprint: 0xc042f8a0f: thermal_gpu_power_get: frequency=177 load=0\n",
"\n",
- "You can add this event to the trace instance using `register_dynamic()`"
+ "You can add this event to the trace instance using `register_dynamic_ftrace()`"
]
},
{
@@ -77,7 +77,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "trappy.register_dynamic(\"gpu_power_in\", \"thermal_gpu_power_get\")"
+ "trappy.register_dynamic_ftrace(\"gpu_power_in\", \"thermal_gpu_power_get\")"
],
"language": "python",
"metadata": {},
@@ -237,7 +237,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "`register_dynamic()` is useful for simple traces in which you don't need to do any post-processing. If you need to register a full-featured trace class you can use `trappy.register_class()` for this. For example, a class that parses trace for `capacity_per_group:` and wants to limit the cpumasks to 8-digit could declare it like this:"
+ "`register_dynamic_ftrace()` is useful for simple traces in which you don't need to do any post-processing. If you need to register a full-featured trace class you can use `trappy.register_ftrace_parser()` for this. For example, a class that parses trace for `capacity_per_group:` and wants to limit the cpumasks to 8-digit could declare it like this:"
]
},
{
@@ -260,7 +260,7 @@
" if self._cpus_column in self.data_frame.columns:\n",
" self.data_frame[self._cpus_column] = self.data_frame[self._cpus_column].apply('{:0>8}'.format)\n",
"\n",
- "trappy.register_class(GroupCapacity)"
+ "trappy.register_ftrace_parser(GroupCapacity)"
],
"language": "python",
"metadata": {},