summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Kurinnoi <m.kurinnoi@samsung.net>2019-10-02 10:32:39 +0300
committer이형주/Common Platform Lab(SR)/Staff Engineer/삼성전자 <leee.lee@samsung.com>2019-10-04 08:47:28 +0900
commit37a9491baff3c892cb6f0e789e1ebeccd6bf155e (patch)
treedfd7135fea606604cfbba14f3af471a925836ac2
parent14da866f8f30c3e0d6302518f58330d48bfff91f (diff)
downloadheaptrack-37a9491baff3c892cb6f0e789e1ebeccd6bf155e.tar.gz
heaptrack-37a9491baff3c892cb6f0e789e1ebeccd6bf155e.tar.bz2
heaptrack-37a9491baff3c892cb6f0e789e1ebeccd6bf155e.zip
-rw-r--r--profiler/profiler/src/profiler.cpp4
-rw-r--r--profiler/profiler/src/stackentry.h2
-rw-r--r--src/interpret/heaptrack_interpret.cpp4
3 files changed, 5 insertions, 5 deletions
diff --git a/profiler/profiler/src/profiler.cpp b/profiler/profiler/src/profiler.cpp
index 4391e11..1411577 100644
--- a/profiler/profiler/src/profiler.cpp
+++ b/profiler/profiler/src/profiler.cpp
@@ -88,8 +88,8 @@ extern __thread StackEntry* g_shadowStack;
__thread StackEntry* g_freeStackEntryListItems = nullptr;
StackEntry::StackEntry(unsigned int funcId,
- char* className,
- char* methodName,
+ const char* className,
+ const char* methodName,
bool isType,
StackEntry *next)
: m_funcId(funcId), m_isType(isType), m_next(next)
diff --git a/profiler/profiler/src/stackentry.h b/profiler/profiler/src/stackentry.h
index 9757c18..53cf27f 100644
--- a/profiler/profiler/src/stackentry.h
+++ b/profiler/profiler/src/stackentry.h
@@ -6,7 +6,7 @@ static constexpr size_t MAX_NAME_LENGTH = 512;
class StackEntry {
public:
- StackEntry(unsigned int funcId, char* className, char* methodName, bool isType, StackEntry *next);
+ StackEntry(unsigned int funcId, const char* className, const char* methodName, bool isType, StackEntry *next);
unsigned int m_funcId;
char m_className[MAX_NAME_LENGTH + 1];
diff --git a/src/interpret/heaptrack_interpret.cpp b/src/interpret/heaptrack_interpret.cpp
index bda498b..23d0431 100644
--- a/src/interpret/heaptrack_interpret.cpp
+++ b/src/interpret/heaptrack_interpret.cpp
@@ -496,7 +496,7 @@ outStream* createStream(const char* fileName)
unsetenv("DUMP_HEAPTRACK_SOCKET_PROMPT");
}
- fprintf(stderr, "will write to socket/%p\n", tmpStream);
+ fprintf(stderr, "will write to socket/%p\n", (void*)tmpStream);
return tmpStream;
}
@@ -508,7 +508,7 @@ outStream* createStream(const char* fileName)
boost::replace_all(outputFileName, "$$", to_string(getpid()));
auto out = OpenStream<outStreamFILE, const char*>(outputFileName.c_str());
- fprintf(stderr, "will write to %s/%p\n", outputFileName.c_str(), out);
+ fprintf(stderr, "will write to %s/%p\n", outputFileName.c_str(), (void*)out);
return out;
}