diff options
author | gulfemsavrun <gulfem@google.com> | 2024-05-31 20:06:18 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-31 20:06:18 -0700 |
commit | 85fd1688b2bbbbfc73ba97d95e621cfbfe9a3fff (patch) | |
tree | 6bc11fa0accb3c62a5d777f28951b4318391546e /lldb/source/Interpreter/CommandInterpreter.cpp | |
parent | 142afde0eba4940f2b331274e9a3535fee960f35 (diff) | |
download | llvm-85fd1688b2bbbbfc73ba97d95e621cfbfe9a3fff.zip llvm-85fd1688b2bbbbfc73ba97d95e621cfbfe9a3fff.tar.gz llvm-85fd1688b2bbbbfc73ba97d95e621cfbfe9a3fff.tar.bz2 |
Revert "A few updates around "transcript"" (#94088)
Reverts llvm/llvm-project#92843 because it broke some lldb tests:
https://luci-milo.appspot.com/ui/p/fuchsia/builders/toolchain.ci/clang-linux-x64/b8746385730949743489/overview
Diffstat (limited to 'lldb/source/Interpreter/CommandInterpreter.cpp')
-rw-r--r-- | lldb/source/Interpreter/CommandInterpreter.cpp | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp index acd6294c..6a61882d 100644 --- a/lldb/source/Interpreter/CommandInterpreter.cpp +++ b/lldb/source/Interpreter/CommandInterpreter.cpp @@ -6,7 +6,6 @@ // //===----------------------------------------------------------------------===// -#include <chrono> #include <cstdlib> #include <limits> #include <memory> @@ -1910,11 +1909,6 @@ bool CommandInterpreter::HandleCommand(const char *command_line, transcript_item = std::make_shared<StructuredData::Dictionary>(); transcript_item->AddStringItem("command", command_line); - transcript_item->AddIntegerItem( - "timestampInEpochSeconds", - std::chrono::duration_cast<std::chrono::seconds>( - std::chrono::system_clock::now().time_since_epoch()) - .count()); m_transcript.AddItem(transcript_item); } @@ -2062,14 +2056,6 @@ bool CommandInterpreter::HandleCommand(const char *command_line, log, "HandleCommand, command line after removing command name(s): '%s'", remainder.c_str()); - // To test whether or not transcript should be saved, `transcript_item` is - // used instead of `GetSaveTrasncript()`. This is because the latter will - // fail when the command is "settings set interpreter.save-transcript true". - if (transcript_item) { - transcript_item->AddStringItem("commandName", cmd_obj->GetCommandName()); - transcript_item->AddStringItem("commandArguments", remainder); - } - ElapsedTime elapsed(execute_time); cmd_obj->Execute(remainder.c_str(), result); } @@ -2086,8 +2072,7 @@ bool CommandInterpreter::HandleCommand(const char *command_line, transcript_item->AddStringItem("output", result.GetOutputData()); transcript_item->AddStringItem("error", result.GetErrorData()); - transcript_item->AddFloatItem("durationInSeconds", - execute_time.get().count()); + transcript_item->AddFloatItem("seconds", execute_time.get().count()); } return result.Succeeded(); |