Code Monkey home page Code Monkey logo

Comments (6)

jasonrhansen avatar jasonrhansen commented on July 30, 2024 7

#145, #146, and #147 have reduced dependencies further and made more of them optional.

$ cargo tree --no-indent | sed 's/ (\*)//' | sort -u | wc -l
107
$ cargo tree --no-indent --no-default-features | sed 's/ (\*)//' | sort -u | wc -l
76

from inferno.

jasonrhansen avatar jasonrhansen commented on July 30, 2024 1

Now we're down to 109 dependencies after #144.

$ cargo tree --no-indent | sed 's/ (\*)//' | sort -u | wc -l
109

from inferno.

felippemr avatar felippemr commented on July 30, 2024

Hey @jonhoo I tried building the project locally without each one of the non dev deps but the project would only build with all of them. What is the path you were thinking for this?

from inferno.

felippemr avatar felippemr commented on July 30, 2024

When I try to cargo build the project locally I get:

 --> src/collapse/perf.rs:4:5
  |
4 | use symbolic_demangle::demangle;
  |     ^^^^^^^^^^^^^^^^^ use of undeclared type or module `symbolic_demangle`

error[E0433]: failed to resolve: use of undeclared type or module `symbolic_demangle`
   --> src/collapse/dtrace.rs:332:45
    |
332 |         self.transform_function_name(frame, symbolic_demangle::demangle)
    |                                             ^^^^^^^^^^^^^^^^^ use of undeclared type or module `symbolic_demangle`

error: aborting due to 2 previous errors

from inferno.

jonhoo avatar jonhoo commented on July 30, 2024

Ah, sorry, to be clear, it's not as though we currently list unused dependencies, but rather I would like to see us re-write parts of the code so that we can remove dependencies. I'm not sure what the issue you are pointing to with symbolic_demangle is -- it compiles fine for me locally?

from inferno.

jasonrhansen avatar jasonrhansen commented on July 30, 2024

I think we should be able to remove symbolic_demangle as a dependency.

#133 and #134 added to our collapsers the ability to fix partially demangled Rust symbols with no external dependencies. I originally implemented #132 to work around the same problem, but it required you to pass --no-demangle to perf script, or -xmangled to dtrace since symbolic_demangle doesn't work when the symbols are partially demangled. Now that we are able to take the mostly demangled symbols the profiling tools give us and fix them up from there, the demangle option on the collapsers seems to be unnecessary.

What do you think?

from inferno.

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.