xo-alloc2: ++ documentation + threshold size for THP feature
This commit is contained in:
parent
992e5a5a8c
commit
289751d3fd
18 changed files with 642 additions and 192 deletions
34
include/xo/alloc2/print.hpp
Normal file
34
include/xo/alloc2/print.hpp
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
/** @file print.hpp
|
||||
*
|
||||
* @author Roland Conybeare, Dec 2025
|
||||
**/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "AllocError.hpp"
|
||||
#include <xo/indentlog/print/tag.hpp>
|
||||
#include <iostream>
|
||||
|
||||
namespace xo {
|
||||
namespace mm {
|
||||
inline std::ostream &
|
||||
operator<<(std::ostream & os, const error & x) {
|
||||
os << AllocError::error_description(x);
|
||||
return os;
|
||||
}
|
||||
|
||||
inline std::ostream &
|
||||
operator<<(std::ostream & os, const AllocError & x) {
|
||||
os << "<AllocError"
|
||||
<< xtag("error", x.error_)
|
||||
<< xtag("seq", x.error_seq_)
|
||||
<< xtag("req_z", x.request_z_)
|
||||
<< xtag("commit_z", x.committed_z_)
|
||||
<< xtag("resv_z", x.reserved_z_)
|
||||
<< ">";
|
||||
return os;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* end print.hpp */
|
||||
Loading…
Add table
Add a link
Reference in a new issue