Don't re-read entire logfile every time, only read from last position

This commit is contained in:
baldurk
2020-09-03 17:45:41 +01:00
parent da0c836aef
commit d71d275dc4
8 changed files with 75 additions and 51 deletions
+2 -1
View File
@@ -1980,7 +1980,8 @@ analysis program.
extern "C" RENDERDOC_API const char *RENDERDOC_CC RENDERDOC_GetLogFile();
DOCUMENT("Internal function for fetching the contents of a log");
extern "C" RENDERDOC_API void RENDERDOC_CC RENDERDOC_GetLogFileContents(rdcstr &logfile);
extern "C" RENDERDOC_API void RENDERDOC_CC RENDERDOC_GetLogFileContents(uint64_t offset,
rdcstr &logfile);
DOCUMENT("Internal function for logging text simply.");
extern "C" RENDERDOC_API void RENDERDOC_CC RENDERDOC_LogText(const char *text);