Lines Matching full:directory
34 /// Strip the \p directory component from the given \p path. It assumes that \p
35 /// directory is a prefix of \p path.
36 static std::string GetRelativePath(const FileSpec &directory, in GetRelativePath() argument
38 return path.GetPath().substr(directory.GetPath().size() + 1); in GetRelativePath()
58 /// Save the trace bundle description JSON object inside the given directory
64 /// \param[in] directory
65 /// The directory where the JSON file will be saved.
72 const FileSpec &directory) { in SaveTraceBundleDescription() argument
73 FileSpec trace_path = directory; in SaveTraceBundleDescription()
86 /// Any associated binary files are created inside the given directory.
91 /// \param[in] directory
92 /// The directory where files will be saved when building the threads
98 BuildThreadsSection(Process &process, FileSpec directory) { in BuildThreadsSection() argument
102 FileSpec threads_dir = directory; in BuildThreadsSection()
117 json_thread.ipt_trace = GetRelativePath(directory, output_file); in BuildThreadsSection()
194 BuildCpusSection(TraceIntelPT &trace_ipt, FileSpec directory, bool compact) { in BuildCpusSection() argument
199 FileSpec cpus_dir = directory; in BuildCpusSection()
213 GetRelativePath(directory, **context_switch_trace_path); in BuildCpusSection()
217 json_cpu.ipt_trace = GetRelativePath(directory, *ipt_trace_path); in BuildCpusSection()
227 /// will be copied over to the \a <directory/modules> folder. Invalid modules
231 /// output directory and can be sent to another machine, where lldb can load
237 /// \param[in] directory
238 /// The directory where the modules files will be saved when building
242 /// \a <directory>/modules/usr/lib/foo/libbar.so.
247 BuildModulesSection(Process &process, FileSpec directory) { in BuildModulesSection() argument
273 FileSpec path_to_copy_module = directory; in BuildModulesSection()
285 JSONModule{system_path, GetRelativePath(directory, path_to_copy_module), in BuildModulesSection()
298 /// \param[in] directory
299 /// The directory where files will be saved when building the processes
305 BuildProcessSection(Process &process, const FileSpec &directory) { in BuildProcessSection() argument
307 BuildThreadsSection(process, directory); in BuildProcessSection()
312 BuildModulesSection(process, directory); in BuildProcessSection()
324 BuildProcessesSection(TraceIntelPT &trace_ipt, const FileSpec &directory) { in BuildProcessesSection() argument
328 BuildProcessSection(*process, directory)) in BuildProcessesSection()
337 BuildKernelSection(TraceIntelPT &trace_ipt, const FileSpec &directory) { in BuildKernelSection() argument
347 BuildModulesSection(*kernel_process, directory); in BuildKernelSection()
356 FileSpec directory, in SaveToDisk() argument
359 sys::fs::create_directories(directory.GetPath().c_str())) in SaveToDisk()
366 FileSystem::Instance().Resolve(directory); in SaveToDisk()
369 BuildCpusSection(trace_ipt, directory, compact); in SaveToDisk()
378 BuildKernelSection(trace_ipt, directory); in SaveToDisk()
385 BuildProcessesSection(trace_ipt, directory); in SaveToDisk()
401 directory); in SaveToDisk()