Skip to content

Add stack-measuring functionality #15600

@nnethercote

Description

@nnethercote

I've done some memory profiling of Servo (by looking at /proc/<pid>/smaps on Linux) and found that stack sizes can be really large:

  • [stack:28150] 1136 kB
  • [stack:28145] 6144 kB
  • [stack:28144] 2048 kB
  • [stack:28141] 8192 kB
  • [stack:28139] 7944 kB
  • [stack:28136] 5120 kB

These are all |Rss| values. The |Size| values (i.e. address space taken) values were even larger.

It would be nice to have language (well, library) support for measuring these within the Rust code. I don't know how it would be implemented, though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions