Skip to content

Commit 478e1b9

Browse files
committed
Update Cookbook observer
1 parent 9c87887 commit 478e1b9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/cookbook/Chapter6.dox

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ browser following below steps to plot the executed tasks as temporal sequences:
281281
@li Step 2: launch the Chrome browser and open a tab with the url: chrome://tracing
282282
@li Step 3: load the JSON file
283283

284-
The resuling plot is like this:
284+
The resulting plot is like this:
285285

286286
@image html images/timeline.png width=80%
287287

@@ -293,8 +293,8 @@ Users can also customize methods of observer to monitor the behavior of an execu
293293
inheriting the tf::ExecutorObserverInterface class.
294294
There are three methods users can customize: tf::ExecutorObserverInterface::set_up,
295295
tf::ExecutorObserverInterface::on_entry and tf::ExecutorObserverInterface::on_exit.
296-
The tf::ExecutorObserverInterface::set_up takes the number of threads in an executor as the input argument and
297-
an executor calls this method once to prepare the observer after the observer is constructed.
296+
The tf::ExecutorObserverInterface::set_up is to prepare the observer and it takes the number of threads in an executor
297+
as the input argument. An executor calls this method once immediately after the observer is constructed.
298298
A thread will call the tf::ExecutorObserverInterface::on_entry and tf::ExecutorObserverInterface::on_exit methods respectively
299299
before and after executing a task, and both methods take the thread id as input argument. Notice that the
300300
tf::ExecutorObserverInterface::on_entry and tf::ExecutorObserverInterface::on_exit can be invoked by multiple

0 commit comments

Comments
 (0)