diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/Dynamic traces.ipynb | 8 |
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": {}, |