Migrated engine to using dlmalloc through eng::
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
|
||||
void DebugCollector::flush() {
|
||||
if (need_flush_) {
|
||||
std::string str = oss_.str();
|
||||
eng::string str = oss_.str();
|
||||
if (!str.empty()) {
|
||||
if (is_regular_) n_regular_ += 1;
|
||||
lines_.push_back(str);
|
||||
@@ -21,7 +21,7 @@ void DebugCollector::flush() {
|
||||
DebugCollector::DebugCollector() : n_regular_(0), need_flush_(false), is_regular_(true), active_(false) {
|
||||
}
|
||||
|
||||
DebugCollector::DebugCollector(const std::string &targets)
|
||||
DebugCollector::DebugCollector(const eng::string &targets)
|
||||
: n_regular_(0), need_flush_(false), is_regular_(true), active_(false) {
|
||||
targets_ = util::split(targets, ',');
|
||||
std::sort(targets_.begin(), targets_.end());
|
||||
@@ -56,9 +56,9 @@ bool DebugCollector::do_header() {
|
||||
return true;
|
||||
}
|
||||
|
||||
void DebugCollector::dump(std::ostream &os) {
|
||||
void DebugCollector::dump(eng::ostream &os) {
|
||||
flush();
|
||||
for (const std::string &line : lines_) {
|
||||
for (const eng::string &line : lines_) {
|
||||
os << line << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user