Lines Matching +full:json +full:- +full:schema
1 //===-- CommandObjectTrace.cpp --------------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 #include "llvm/Support/JSON.h"
84 "trace.json. This file can be used by the \"trace load\" command "
88 "trace save [<cmd-options>] <bundle_directory>",
117 TraceSP trace_sp = process_sp->GetTarget().GetTrace();
120 trace_sp->SaveToDisk(bundle_dir, m_options.m_compact)) {
176 "Load a post-mortem processor trace session from a trace bundle.",
195 result.AppendError("a single path to a JSON file containing a the "
214 trace_or_err.get()->GetPluginName());
329 : CommandObjectParsed(interpreter, "trace schema",
330 "Show the schema of the given trace plugin.",
331 "trace schema <plug-in>. Use the plug-in name "
345 "trace schema cannot be invoked without a plug-in as argument");
353 StringRef schema = PluginManager::GetTraceSchema(index++);
354 if (schema.empty())
357 result.AppendMessage(schema);
383 "trace [<sub-command-options>]") {
390 LoadSubCommand("schema",
402 if (m_live_debug_session_only && !process_sp->IsLiveDebugSession())
406 if (Expected<TraceSP> trace_sp = process_sp->GetTarget().GetTraceOrCreate())