hip api trace buffering

This commit is contained in:
Evgeny
2019-07-02 16:51:02 -05:00
parent b641d7c3fd
commit 197c615204
3 changed files with 84 additions and 45 deletions
+2 -2
View File
@@ -41,8 +41,8 @@ class TraceBuffer {
TraceBuffer(uint32_t size) {
size_ = size;
data_ = new Entry[size_];;
memset(data_, 0, size_ * sizeof(Entry));
data_ = (Entry*) calloc(size, sizeof(Entry));
memset(data_, 0, size * sizeof(Entry));
read_pointer_ = data_;
}