MCPcopy Create free account
hub / github.com/async-profiler/async-profiler / MemoryMapDesc

Method MemoryMapDesc

src/symbols_linux.cpp:117–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115
116 public:
117 MemoryMapDesc(const char* s) {
118 _addr = s;
119 _end = strchr(_addr, '-') + 1;
120 _perm = strchr(_end, ' ') + 1;
121 _offs = strchr(_perm, ' ') + 1;
122 _dev = strchr(_offs, ' ') + 1;
123 _inode = strchr(_dev, ' ') + 1;
124 _file = strchr(_inode, ' ');
125
126 if (_file != NULL) {
127 while (*_file == ' ') _file++;
128 }
129 }
130
131 const char* file() { return _file; }
132 bool isReadable() { return _perm[0] == 'r'; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected