}
if (father_) {
- type_ = father_->type_->getChildOrNull(typeNameBuff);
- if (type_ == nullptr) {
- type_ = Type::containerNew(typeNameBuff.c_str(), father_->type_);
- }
+ type_ = father_->type_->getOrCreateContainerType(typeNameBuff);
father_->children_.insert({name_, this});
logCreation();
} else if (kind_ == INSTR_AS) {
- type_ = Type::containerNew("0", nullptr);
+ type_ = Type::createRootType();
}
//register all kinds by name
// obligation to dump previous events because they might reference the container that is about to be destroyed
TRACE_last_timestamp_to_dump = surf_get_clock();
- TRACE_paje_dump_buffer(1);
+ TRACE_paje_dump_buffer(true);
// trace my destruction
if (not TRACE_disable_destroy() && this != PJ_container_get_root()) {