Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read smaps in the memory profiler on Linux #4894

Merged
merged 2 commits into from Feb 24, 2015
Merged

Commits on Feb 23, 2015

  1. Switch ordering of the memory profiler's output columns.

    Because _size_ is always small, but _category_ can be long, so it makes
    sense to have the _size_ on the left.
    nnethercote committed Feb 23, 2015
  2. Report detailed RSS measurements from /proc/<pid>/smaps on Linux.

    All anonymous segments are aggregated into a single measurement, as are
    all segments smaller than 512 KiB.
    
    Example output:
    
          142.89: resident-according-to-smaps
           97.84: - anonymous (rw-p)
           23.98: - /home/njn/moz/servo/components/servo/target/servo (r-xp)
            6.58: - [heap] (rw-p)
            5.36: - other
            3.51: - /usr/lib/x86_64-linux-gnu/dri/i965_dri.so (r-xp)
            1.33: - /lib/x86_64-linux-gnu/libc-2.19.so (r-xp)
            0.93: - /home/njn/moz/servo/components/servo/target/servo (r--p)
            0.76: - /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.20 (r-xp)
            0.74: - /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0 (r-xp)
            0.50: - /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (r-xp)
            0.50: - /lib/x86_64-linux-gnu/libglib-2.0.so.0.4200.1 (r-xp)
            0.45: - /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1.2.0 (r-xp)
            0.43: - /lib/x86_64-linux-gnu/libm-2.19.so (r-xp)
    nnethercote committed Feb 23, 2015
You can’t perform that action at this time.