diff options
| author | kaizhangNV <149626564+kaizhangNV@users.noreply.github.com> | 2024-07-31 15:03:27 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-31 13:03:27 -0700 |
| commit | bab4b821dc6bcee4ff86751743762584c17e9103 (patch) | |
| tree | f67eb2e1d4825cc45808cca285b0936b3f25827f /source/slang-record-replay/record/slang-module.cpp | |
| parent | 93a3ba812dd33b10f166f9172bd781e84d938e21 (diff) | |
Feature/replayer (#4750)
* record/replay: Implement the json consumer
Finish the implementation of json consumer.
Fix some bug in the block processing as Tailer is not a necessary block
so if the Magic bit is "HEAD", we should keep processing.
* record/replay: Implement the replayer component
Implement the replayer consumer, and also finish the slang-replay
standalone app that will run the while replayer.
It can take an option "--convert-json | -cj" which will convert
the record binary file to a human readable json file.
If there is no option provided, it will replay the record file by
default.
TODO: #4764 is created to remove the std::filesystem usage.
Diffstat (limited to 'source/slang-record-replay/record/slang-module.cpp')
| -rw-r--r-- | source/slang-record-replay/record/slang-module.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/source/slang-record-replay/record/slang-module.cpp b/source/slang-record-replay/record/slang-module.cpp index 1457e7cf1..b59aaa18b 100644 --- a/source/slang-record-replay/record/slang-module.cpp +++ b/source/slang-record-replay/record/slang-module.cpp @@ -52,7 +52,7 @@ namespace SlangRecord { recorder->recordAddress(*outEntryPoint); - m_recordManager->endMethodRecordAppendOutput(); + m_recordManager->apendOutput(); } if (SLANG_OK == res) @@ -88,7 +88,7 @@ namespace SlangRecord { recorder->recordAddress(*outEntryPoint); - m_recordManager->endMethodRecordAppendOutput(); + m_recordManager->apendOutput(); } if (*outEntryPoint) @@ -120,7 +120,7 @@ namespace SlangRecord { recorder->recordAddress(*outSerializedBlob); - m_recordManager->endMethodRecordAppendOutput(); + m_recordManager->apendOutput(); } return res; @@ -186,7 +186,7 @@ namespace SlangRecord { recorder->recordAddress(*outEntryPoint); recorder->recordAddress(*outDiagnostics); - m_recordManager->endMethodRecordAppendOutput(); + m_recordManager->apendOutput(); } if (SLANG_OK == res) @@ -240,7 +240,7 @@ namespace SlangRecord { recorder->recordAddress(*outDiagnostics); recorder->recordAddress(programLayout); - m_recordManager->endMethodRecordAppendOutput(); + m_recordManager->apendOutput(); } return programLayout; @@ -275,7 +275,7 @@ namespace SlangRecord { recorder->recordAddress(*outCode); recorder->recordAddress(*outDiagnostics); - m_recordManager->endMethodRecordAppendOutput(); + m_recordManager->apendOutput(); } return res; @@ -300,7 +300,7 @@ namespace SlangRecord { recorder->recordAddress(*outCode); recorder->recordAddress(*outDiagnostics); - m_recordManager->endMethodRecordAppendOutput(); + m_recordManager->apendOutput(); } return res; @@ -325,7 +325,7 @@ namespace SlangRecord { recorder->recordAddress(*outFileSystem); - m_recordManager->endMethodRecordAppendOutput(); + m_recordManager->apendOutput(); } // TODO: We might need to wrap the file system object. @@ -351,7 +351,7 @@ namespace SlangRecord { recorder->recordAddress(*outHash); - m_recordManager->endMethodRecordAppendOutput(); + m_recordManager->apendOutput(); } } @@ -376,7 +376,7 @@ namespace SlangRecord { recorder->recordAddress(*outSpecializedComponentType); recorder->recordAddress(*outDiagnostics); - m_recordManager->endMethodRecordAppendOutput(); + m_recordManager->apendOutput(); } return res; @@ -399,7 +399,7 @@ namespace SlangRecord { recorder->recordAddress(*outLinkedComponentType); recorder->recordAddress(*outDiagnostics); - m_recordManager->endMethodRecordAppendOutput(); + m_recordManager->apendOutput(); } return res; @@ -426,7 +426,7 @@ namespace SlangRecord { recorder->recordAddress(*outSharedLibrary); recorder->recordAddress(*outDiagnostics); - m_recordManager->endMethodRecordAppendOutput(); + m_recordManager->apendOutput(); } return res; @@ -448,7 +448,7 @@ namespace SlangRecord { recorder->recordAddress(*outEntryPoint); - m_recordManager->endMethodRecordAppendOutput(); + m_recordManager->apendOutput(); } return res; @@ -475,7 +475,7 @@ namespace SlangRecord { recorder->recordAddress(*outLinkedComponentType); recorder->recordAddress(*outDiagnostics); - m_recordManager->endMethodRecordAppendOutput(); + m_recordManager->apendOutput(); } return res; |
