Git Product home page Git Product logo

Comments (3)

christophebedard avatar christophebedard commented on July 3, 2024

Well, I see two options:

  1. As mentioned above, emit a warning if the trace directory already exists; or
  2. Error out (for ros2 trace) or throw an error (for the Trace 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.

mjcarroll avatar mjcarroll commented on July 3, 2024

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.

christophebedard avatar christophebedard commented on July 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.