Coder Social home page Coder Social logo

Comments (7)

rsc avatar rsc commented on September 26, 2024 2

Please please please don't do that. It's just needlessly pedantic. Just accept that on computers MB means 2^20 and so on.

from pprof.

ahh avatar ahh commented on September 26, 2024

Not everyone does accept that, and when I read a pprof profile I have no idea which sort of person the author is.

Saying KiB makes it absolutely clear.

from pprof.

ahh avatar ahh commented on September 26, 2024

@aalexand Also, should I file a separate issue for needing larger units (TiB and PiB) or is that worth dealing with in one fell swoop?

from pprof.

aalexand avatar aalexand commented on September 26, 2024

from pprof.

aalexand avatar aalexand commented on September 26, 2024

I filed this request at ahh@'s ask to discuss it.

In practice there isn't a lot of ambiguity about MB / GB for memory units - assuming powers of 2 are used is a safe bet. E.g. top shows RSS as like "123M", and that expectedly means MiB.

That said, the clarity becomes more important when a profile represents larger amounts of memory as at TB vs. TiB the difference becomes ~10%.

from pprof.

rauls5382 avatar rauls5382 commented on September 26, 2024

How about if we leave the current defaults as-is (as broken as they can pedantically be considered), but we support users specifying IEC units on the command line (eg -unit=GiB or even perhaps even -unit=IEC)?

Would that please/appease/at least not annoy everyone?

from pprof.

rauls5382 avatar rauls5382 commented on September 26, 2024

Closing this due to lack of interest. Reopen if you care about it.

from pprof.

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.