reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | //===-- TraceOptions.h ------------------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #ifndef liblldb_TraceOptions_h_ #define liblldb_TraceOptions_h_ #include "lldb/lldb-defines.h" #include "lldb/lldb-enumerations.h" #include "lldb/Utility/StructuredData.h" namespace lldb_private { class TraceOptions { public: TraceOptions() : m_trace_params(new StructuredData::Dictionary()) {} const StructuredData::DictionarySP &getTraceParams() const { return m_trace_params; } lldb::TraceType getType() const { return m_type; } uint64_t getTraceBufferSize() const { return m_trace_buffer_size; } uint64_t getMetaDataBufferSize() const { return m_meta_data_buffer_size; } void setTraceParams(const StructuredData::DictionarySP &dict_obj) { m_trace_params = dict_obj; } void setType(lldb::TraceType type) { m_type = type; } void setTraceBufferSize(uint64_t size) { m_trace_buffer_size = size; } void setMetaDataBufferSize(uint64_t size) { m_meta_data_buffer_size = size; } void setThreadID(lldb::tid_t thread_id) { m_thread_id = thread_id; } lldb::tid_t getThreadID() const { return m_thread_id; } private: lldb::TraceType m_type; uint64_t m_trace_buffer_size; uint64_t m_meta_data_buffer_size; lldb::tid_t m_thread_id; /// m_trace_params is meant to hold any custom parameters /// apart from meta buffer size and trace size. /// The interpretation of such parameters is left to /// the lldb-server. StructuredData::DictionarySP m_trace_params; }; } #endif // liblldb_TraceOptions_h_ |