public final class Mapping extends Object
| Constructor and Description |
|---|
Mapping(String line)
Constructs a Mapping object by parsing a line from the /proc/[pid]/maps file.
|
| Modifier and Type | Method and Description |
|---|---|
long |
addr()
Returns the start address of the memory mapping.
|
String |
device()
Returns the device (major:minor) of the memory mapping.
|
long |
inode()
Returns the inode on the device.
|
long |
length()
Returns the length of the memory mapping.
|
long |
offset()
Returns the offset into the file/VM object to which the memory mapping refers.
|
String |
path()
Returns the file path associated with the memory mapping.
|
String |
perms()
Returns the permissions of the memory mapping.
|
String |
toString()
Returns the original line from the /proc/[pid]/maps file.
|
public Mapping(String line)
line - A line from the /proc/[pid]/maps file.public long addr()
public long length()
public long offset()
public long inode()
public String perms()
public String device()
public String path()
Copyright © 2024. All rights reserved.