Comments (3)
Well, I see two options:
- As mentioned above, emit a warning if the trace directory already exists; or
- Error out (for
ros2 trace
) or throw an error (for theTrace
action) if the trace directory already exists, unless the user uses a new--append
/append=True
option.
I'd go for option 2. @mjcarroll what do you think?
from ros2_tracing.
I think I would prefer option 2. As you said, you can end up with some weird discontinuities in the data if you appended without realizing it. I would prefer for it to error out and allow me to fix it.
Another option would be to auto-append an integer in the case of a conflict, but I don't know if that's too complicated.
from ros2_tracing.
Thanks for the feedback.
Another option would be to auto-append an integer in the case of a conflict, but I don't know if that's too complicated.
Yeah, I don't think that's a desirable default behaviour, since I think the user expects the given session name to be used as the trace directory name, even if the trace directory path is printed. At least that's what I would expect.
Tangentially, tracetools_trace
can append a timestamp to the session name, but it's not exposed by tracetools_trace
itself or by ros2trace
. It's only used by tracetools_test
. We could probably expose it through tracetools_trace
/ros2trace
(opt-in) separately from this issue.
from ros2_tracing.
Related Issues (20)
- Provide example of real-time benchmark/use of ros2_tracing
- Add end-to-end test for 'ros2 trace' command
- Fix mypy test failures HOT 2
- How to trace non-ROS2 functions within ros2_tracing and view in tracecompass HOT 3
- Replace distutils.version.StrictVersion since distutils is deprecated
- Memory leak with tracetools::get_symbol()
- Process trace events into intermediate storage format HOT 4
- Destroy tracing session if it exists when tracing configuration fails
- Remove context_names parameter in Rolling
- Mention needing to start tracing before starting application
- Find solution to allow starting to trace from any point in time
- regression in build on macos HOT 1
- Provide non-interactive 'ros2 trace start/pause/resume/stop' commands HOT 1
- Proposal: move dds tracepoints to RWM layers HOT 1
- test_tracetools_launch tests causing GitHub CI to hang HOT 1
- Colcon build error after installation of ros2_tracing HOT 2
- rcl_init miss HOT 11
- Empty and partially-filled metadata files from trace HOT 4
- lttngpy fails to build on Windows Debug HOT 3
- Allow tracing tests to be run in parallel with tracing tests & normal tests
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ros2_tracing.