Commit graph

342 commits

Author SHA1 Message Date
Christophe Bedard
4070057047 Fix type hint 2019-12-31 20:18:41 -05:00
Christophe Bedard
e9705a71ab Add test for direct EventHandler.process() call 2019-12-31 20:18:28 -05:00
Christophe Bedard
19652f165e Add test for get_handler_by_type() 2019-12-31 20:17:26 -05:00
Christophe Bedard
088b555ae0 Cleanup EventHandler.process() method and use AssertionError 2019-12-31 20:17:09 -05:00
Christophe Bedard
06efe1a169 Add get_handler_by_type() method in Processor 2019-12-31 20:16:24 -05:00
Christophe Bedard
fe1e856372 Add getter for Processor in EventHandler 2019-12-31 20:16:05 -05:00
Christophe Bedard
87ecea9970 Merge branch 'move-error-class' into 'master'
Move RequiredEventNotFoundError class to Processor class

See merge request micro-ROS/ros_tracing/tracetools_analysis!41
2020-01-01 00:53:01 +00:00
Christophe Bedard
f176cea4e3 Move RequiredEventNotFoundError class to Processor class 2019-12-31 19:39:06 -05:00
Christophe Bedard
d0229a0bed Merge branch 'auto-processor' into 'master'
Add automatic processor

See merge request micro-ROS/ros_tracing/tracetools_analysis!40
2020-01-01 00:33:13 +00:00
Christophe Bedard
b42fbbe1c6 Add method to make AutoProcessor print all data models 2019-12-31 15:15:08 -05:00
Christophe Bedard
b4cd9e2043 Add AutoProcessor test 2019-12-31 15:09:35 -05:00
Christophe Bedard
1e84b9d35e Keep handlers are attribute in AutoProcessor 2019-12-31 15:09:08 -05:00
Christophe Bedard
af2e0a2d41 Expose name parameter for submodule import util method 2019-12-31 15:08:45 -05:00
Christophe Bedard
845362f9e3 Change class lists to sets 2019-12-31 15:08:05 -05:00
Christophe Bedard
1dc42cb4f6 Fix misspelling 2019-12-31 14:04:30 -05:00
Christophe Bedard
96fac6b737 Fix linter errors 2019-12-31 13:58:25 -05:00
Christophe Bedard
154ad1af7d Add script entrypoint that uses AutoProcessor 2019-12-31 13:53:30 -05:00
Christophe Bedard
db9e94b1dc Add AutoProcessor 2019-12-31 13:52:44 -05:00
Christophe Bedard
acce73f26d Raise error if MemoryUsageHandler is instanciated directly 2019-12-31 13:52:25 -05:00
Christophe Bedard
b9e15aac41 Make sure Processor is is given at least one EventHandler 2019-12-31 13:20:56 -05:00
Christophe Bedard
0ceea3025c Extract get_event_names() method 2019-12-31 13:20:22 -05:00
Christophe Bedard
6412798a47 Define a (single) required event for Ros2Handler 2019-12-31 13:19:59 -05:00
Christophe Bedard
e374419665 Make required events a set 2019-12-31 13:19:31 -05:00
Christophe Bedard
938cc263d5 Merge branch 'move-convert-if-needed-function-to-loading-submodule' into 'master'
Move input path inspection + optional conversion logic to loading submodule

See merge request micro-ROS/ros_tracing/tracetools_analysis!39
2019-12-29 19:39:20 +00:00
Christophe Bedard
73b5ed547d Make do_convert_if_needed True by default 2019-12-29 14:25:08 -05:00
Christophe Bedard
9c629e8bf7 Clarify docstring 2019-12-29 14:16:26 -05:00
Christophe Bedard
7f54198921 Extract get_input_path function to be used by all scripts 2019-12-29 14:09:59 -05:00
Christophe Bedard
d2e0a5b6cd Move input path inspection + optional conversion to loading submodule 2019-12-29 14:04:49 -05:00
Christophe Bedard
6b28456ac8 Merge branch 'required-events' into 'master'
Allow EventHandlers to provide list of required events

See merge request micro-ROS/ros_tracing/tracetools_analysis!38
2019-12-29 18:11:45 +00:00
Christophe Bedard
c6df464d58 Remove some ust memory allocation events from list of required events 2019-12-29 13:01:15 -05:00
Christophe Bedard
9f500d2061 Update EventHandler/Processor tests after adding required events 2019-12-29 13:00:24 -05:00
Christophe Bedard
2fbab32816 Add optional check for required events before processing 2019-12-29 12:59:54 -05:00
Christophe Bedard
79f702e621 Fix assert condition 2019-12-29 12:58:56 -05:00
Christophe Bedard
e4d10e9e88 Allow EventHandlers to declare list of required events 2019-12-29 12:16:09 -05:00
Christophe Bedard
694a0d852b Merge branch 'kernel-memory-analysis' into 'master'
Add kernel memory usage analysis

See merge request micro-ROS/ros_tracing/tracetools_analysis!37
2019-12-29 16:38:13 +00:00
Christophe Bedard
1e83053cc1 Fix linter errors 2019-12-29 11:35:07 -05:00
Christophe Bedard
bd37b4aa0f Update memory_usage notebook 2019-12-29 11:26:06 -05:00
Christophe Bedard
90cbfbfe40 Move max memory usage computation to data util 2019-12-29 11:25:50 -05:00
Christophe Bedard
6842b7c9b3 Extract generic MemoryUsageHandler to use as base class for ust&kernel 2019-12-28 17:32:07 -05:00
Christophe Bedard
2f46004154 Add kernel memory alloc/free events to memory_usage launchfile 2019-12-28 17:29:51 -05:00
Christophe Bedard
66282c9569 Merge branch 'add-progress-display-cleanup-method' into 'master'
Add cleanup method for ProcessingProgressDisplay

See merge request micro-ROS/ros_tracing/tracetools_analysis!36
2019-12-27 22:02:51 +00:00
Christophe Bedard
c3725c1eda Add cleanup method for ProcessingProgressDisplay 2019-12-27 16:59:25 -05:00
Christophe Bedard
db1e0ffa65 Merge branch '18-implement-memory-usage-analysis' into 'master'
Implement userspace memory usage analysis

Closes #18

See merge request micro-ROS/ros_tracing/tracetools_analysis!27
2019-12-27 21:41:23 +00:00
Christophe Bedard
3bb540d1b2 Add memory_usage entrypoint script 2019-12-27 16:36:18 -05:00
Christophe Bedard
4207732ff0 Explicitly cast tid to int 2019-12-27 15:59:31 -05:00
Christophe Bedard
8d3f842518 Add userspace memory usage analysis 2019-12-27 14:35:01 -05:00
Christophe Bedard
1115674b9f Merge branch 'create-script-entrypoints-directory' into 'master'
Fix cb_durations script linter errors and move to scripts directory

See merge request micro-ROS/ros_tracing/tracetools_analysis!33
2019-12-27 19:27:51 +00:00
Christophe Bedard
de3dd7ff86 Fix cb_durations script linter errors and move to scripts directory 2019-12-27 14:24:27 -05:00
Christophe Bedard
d152e1c017 Merge branch 'fix-docstrings-imperative' into 'master'
Use imperative mood in constructor docstrings

See merge request micro-ROS/ros_tracing/tracetools_analysis!35
2019-12-27 19:23:51 +00:00
Christophe Bedard
dadc355b06 Use imperative mood in constructor docstrings 2019-12-27 14:17:13 -05:00