}
}
-simgrid::instr::StartLinkEvent::~StartLinkEvent()
-{
- free(value_);
- free(key_);
-}
simgrid::instr::StartLinkEvent::StartLinkEvent(double timestamp, container_t container, Type* type,
container_t sourceContainer, const char* value, const char* key)
: StartLinkEvent(timestamp, container, type, sourceContainer, value, key, -1)
: container_(container)
, type_(type)
, sourceContainer_(sourceContainer)
- , value_(xbt_strdup(value))
- , key_(xbt_strdup(key))
+ , value_(value)
+ , key_(key)
, size_(size)
{
eventType_ = PAJE_StartLink;
this->timestamp_ = timestamp;
- XBT_DEBUG("%s: event_type=%d, timestamp=%f, value:%s", __FUNCTION__, (int)eventType_, this->timestamp_, this->value_);
+ XBT_DEBUG("%s: event_type=%d, timestamp=%f, value:%s", __FUNCTION__, (int)eventType_, this->timestamp_, this->value_.c_str());
insert_into_buffer (this);
}
Container* container_;
Type* type_;
Container* sourceContainer_;
- char* value_;
- char* key_;
+ std::string value_;
+ std::string key_;
int size_;
public:
- ~StartLinkEvent();
StartLinkEvent(double timestamp, Container* container, Type* type, Container* sourceContainer, const char* value,
const char* key);
StartLinkEvent(double timestamp, Container* container, Type* type, Container* sourceContainer, const char* value,