}
}
+StartLinkEvent::~StartLinkEvent()
+{
+ free(value);
+ free(key);
+}
StartLinkEvent::StartLinkEvent (double timestamp, container_t container,
type_t type, container_t sourceContainer, const char *value, const char *key)
: StartLinkEvent(timestamp, container, type, sourceContainer, value, key, -1)
char *key;
int size;
public:
- StartLinkEvent (double timestamp, container_t container, type_t type, container_t sourceContainer,
- const char *value, const char *key);
- StartLinkEvent (double timestamp, container_t container, type_t type,
- container_t sourceContainer, const char *value, const char *key, int size);
- void print() override;
+ ~StartLinkEvent();
+ StartLinkEvent(double timestamp, container_t container, type_t type, container_t sourceContainer, const char* value,
+ const char* key);
+ StartLinkEvent(double timestamp, container_t container, type_t type, container_t sourceContainer, const char* value,
+ const char* key, int size);
+ void print() override;
};
class EndLinkEvent : public PajeEvent {