Commit graph

275 commits

Author SHA1 Message Date
Christophe Bedard
9304d1b30e Add test for quiet processor option
Signed-off-by: Christophe Bedard <bedard.christophe@gmail.com>
2020-05-23 09:49:52 -04:00
Christophe Bedard
233d63077e Add 'quiet' option for Processor to not print any output
Signed-off-by: Christophe Bedard <bedard.christophe@gmail.com>
2020-05-23 09:49:52 -04:00
Christophe Bedard
df65eebfca Add coverage CI job and upload results to codecov.io
Signed-off-by: Christophe Bedard <bedard.christophe@gmail.com>
2020-05-23 09:46:31 -04:00
Christophe Bedard
c0a523328d Fix flake8 errors
Signed-off-by: Christophe Bedard <bedard.christophe@gmail.com>
2020-05-23 09:33:42 -04:00
Christophe Bedard
0c592bb179 Add missing typing info
Signed-off-by: Christophe Bedard <bedard.christophe@gmail.com>
2020-05-23 09:30:53 -04:00
Christophe Bedard
ad3f1944db Declare dependencies on jupyter & bokeh and update README
Signed-off-by: Christophe Bedard <bedard.christophe@gmail.com>
2020-05-23 09:18:36 -04:00
Christophe Bedard
d26958892f Use executable= instead of node_executable= with launch_ros.*.Node
Signed-off-by: Christophe Bedard <bedard.christophe@gmail.com>
2020-04-21 15:52:39 -04:00
Christophe Bedard
d4426257bf Define output metavar to simplify ros2 trace-analysis convert usage info
Signed-off-by: Christophe Bedard <bedard.christophe@gmail.com>
2020-03-13 18:13:55 -04:00
Christophe Bedard
3087e62451 Revert "Ignore tracetools_analysis-specific tests for now"
This reverts commit 8d4d6ca6ad.

Signed-off-by: Christophe Bedard <bedard.christophe@gmail.com>
2020-03-08 17:04:13 -04:00
Christophe Bedard
60d46b12c8 Revert "Remove pandas dependency"
This reverts commit fdf84d3607.

Signed-off-by: Christophe Bedard <bedard.christophe@gmail.com>
2020-03-08 17:04:03 -04:00
Christophe Bedard
377ce353fa Fix typing information for mypy tests
Signed-off-by: Christophe Bedard <bedard.christophe@gmail.com>
2020-03-08 16:33:32 -04:00
Christophe Bedard
d7c55b9a22 Add mypy tests
Signed-off-by: Christophe Bedard <bedard.christophe@gmail.com>
2020-03-08 15:51:23 -04:00
Christophe Bedard
7488245fc2 Validate convert/process paths
Signed-off-by: Christophe Bedard <bedard.christophe@gmail.com>
2020-03-07 17:03:00 -05:00
Christophe Bedard
0bb17507e0 Add 'ip' context to example profiling launch file 2020-01-18 15:48:47 -05:00
Christophe Bedard
60b3709078 Switch to using ping/pong nodes for profile example launch file 2020-01-18 11:14:46 -05:00
Christophe Bedard
8c08cd192e Add DataModelUtil creation test 2020-01-01 13:01:43 -05:00
Christophe Bedard
2fee0ced26 Add option to simply give an EventHandler when creating a DataModelUtil 2020-01-01 12:48:12 -05:00
Christophe Bedard
3dcf1cd303 Do check before calling super().__init__() 2020-01-01 12:46:44 -05:00
Christophe Bedard
ce4b54c119 Fix misspelling 2020-01-01 00:16:32 -05:00
Christophe Bedard
fbc11104fa Mention why EventHandler does not raise when instantiated directly 2020-01-01 00:16:23 -05:00
Christophe Bedard
7a1c2f0334 Move *DataModel ownership to base EventHandler class 2020-01-01 00:11:27 -05:00
Christophe Bedard
e7e831c506 Fix linter errors 2019-12-31 20:19:56 -05:00
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
f176cea4e3 Move RequiredEventNotFoundError class to Processor class 2019-12-31 19:39:06 -05: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
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
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