xo-interpreter2: scaffold repl + alloc measurement frameowkr
This commit is contained in:
parent
ac2b307eb9
commit
438e92d51b
2 changed files with 23 additions and 0 deletions
|
|
@ -21,6 +21,7 @@ namespace xo {
|
|||
class StringTable {
|
||||
public:
|
||||
using DArena = xo::mm::DArena;
|
||||
using MemorySizeInfo = xo::mm::MemorySizeInfo;
|
||||
using StringMap = xo::map::DArenaHashMap<std::string_view,
|
||||
DUniqueString*>;
|
||||
using size_type = StringMap::size_type;
|
||||
|
|
@ -45,6 +46,9 @@ namespace xo {
|
|||
**/
|
||||
bool verify_ok(verify_policy p = verify_policy::throw_only()) const;
|
||||
|
||||
std::size_t _n_store() const noexcept;
|
||||
MemorySizeInfo _store_info(std::size_t i) const noexcept;
|
||||
|
||||
private:
|
||||
/** allocate string storage in this arena; use DString to represent each string.
|
||||
* Can't use DArenaVector b/c DString has variable size
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue