Home
last modified time | relevance | path

Searched refs:T (Results 1 – 25 of 267) sorted by relevance

1234567891011

/developtools/profiler/device/plugins/process_plugin/include/
Dprocess_data_plugin.h62 template <typename T> bool WriteProcesseList(T& processData);
69 template <typename T> void WriteProcessInfo(T& processData, int32_t pid);
71 …template <typename T> void WriteProcess(T& processinfo, const char* pFile, uint32_t fileLen, int32…
73 template <typename T> void SetProcessInfo(T& processinfo, int key, const char* word);
79 template <typename T> bool WriteCpuUsageData(int pid, T& cpuInfo);
86 template <typename T> bool WriteThreadData(int pid, T& cpuInfo);
92 template <typename T> bool GetDiskioData(std::string& line, T& diskioInfo);
94 template <typename T> bool WriteDiskioData(int pid, T& processinfo);
96 template <typename T> bool WritePssData(int pid, T& processinfo);
/developtools/profiler/device/plugins/memory_plugin/include/
Dmemory_data_plugin.h350 template <typename T> void WriteProcesseList(T& memoryData);
352 template <typename T> void WriteProcinfoByPidfds(T& processMemoryInfo, int32_t pid);
375 template <typename T> void WriteVmstat(T& memoryData);
377 template <typename T> void WriteMeminfo(T& memoryData);
379 template <typename T> void WriteZramData(T& memoryData);
390 template <typename T> void WriteProcessInfo(T& memoryData, int32_t pid);
392 template <typename T> void WriteOomInfo(T& processMemoryInfo, int32_t pid);
394 …template <typename T> void WriteProcess(T& processMemoryInfo, const char* pFile, uint32_t fileLen,…
396 template <typename T> void WriteAppsummary(T& processMemoryInfo, SmapsStats& smapInfo);
398 template <typename T> void SetProcessInfo(T& processMemoryInfo, int key, const char* word);
[all …]
/developtools/profiler/device/plugins/native_daemon/include/
Dstack_preprocess.h114 template <typename T>
115 void SetHookData(RawStackPtr rawStack, T& stackData);
116 template <typename T>
117 void SetHookData(RawStackPtr rawStack, std::vector<CallFrame>& callFrames, T& stackData);
119 template <typename T>
120 void SetFrameInfo(T& frame, CallFrame& callFrame);
121 template <typename T>
122 void ReportSymbolNameMap(CallFrame& callFrame, T& stackData);
123 template <typename T>
124 void ReportFilePathMap(CallFrame& callFrame, T& stackData);
[all …]
/developtools/profiler/device/plugins/cpu_plugin/include/
Dcpu_data_plugin.h84 template <typename T> void SetTimestamp(T& sampleTimeStamp);
89 …template <typename T> void WriteProcessCpuUsage(T& cpuUsageInfo, const char* pFile, uint32_t fileL…
93 template <typename T> void WriteSystemCpuUsage(T& cpuUsageInfo, CpuLoadData& cpuData,
96 template <typename T, typename I> void WriteCpuUsageInfo(T& cpuData, I cpuUsageInfo);
103 …template <typename T> void WriteThread(T& threadInfo, const char* pFile, uint32_t fileLen, int32_t…
105 template <typename T> void WriteSingleThreadInfo(T& cpuData, int32_t tid);
107 template <typename T> void WriteThreadInfo(T& cpuData);
113 template <typename T> void SetCpuFrequency(T& cpuCoreUsageInfo, int32_t coreNum);
115 template <typename T> bool WriteProcnum(T& cpuData);
/developtools/profiler/device/plugins/ffrt_profiler/service/include/
Dffrt_profiler_handle.h48 template <typename T>
49 void FlushCheck(T& protoData);
52 template <typename T>
53 void SerializeDataImpl(T& protoData, const int8_t data[], uint32_t size);
54 template <typename T>
55 void SerializeBaseData(T& baseDataProto, const int8_t* data);
56 template <typename T>
57 void SerializeTraceData(T& protoData, const int8_t data[], uint32_t size);
58 template <typename T>
59 void ReportCommonData(T& protoData, FfrtResultBase* base);
[all …]
/developtools/profiler/device/plugins/network_profiler/service/include/
Dnetwork_profiler_handle.h47 template <typename T>
48 void FlushCheck(T& protoData);
51 template <typename T>
52 void SerializeDataImpl(T& protoData, const int8_t data[], uint32_t size);
53 template <typename T>
54 void SerializeBaseData(T& baseDataProto, const int8_t* data);
55 template <typename T>
56 void SerializeTraceData(T& protoData, const int8_t data[], uint32_t size);
57 template <typename T>
58 void SerializeThreadData(T& protoData, const int8_t data[], uint32_t size);
[all …]
/developtools/profiler/device/plugins/ftrace_plugin/include/
Dftrace_field_parser.h26 …template <typename T> static T ParseIntField(const FieldFormat& format, uint8_t data[], size_t siz… in ParseIntField()
28 static_assert(std::is_integral<T>::value, "Integral type T required."); in ParseIntField()
29 T retval = {}; in ParseIntField()
36 template <typename T>
37 static std::vector<T> ParseVectorIntField(const std::vector<FieldFormat>& fields, in ParseVectorIntField()
40 static_assert(std::is_integral<T>::value, "Integral type T required."); in ParseVectorIntField()
46 std::vector<T> retvalVec = {}; in ParseVectorIntField()
52 T retval = {}; in ParseVectorIntField()
59 template <typename T>
60 …static T ParseIntField(const std::vector<FieldFormat>& fields, size_t id, uint8_t data[], size_t s… in ParseIntField()
[all …]
Dflow_controller.h72 template <typename T, typename E>
73 bool HmParseEventData(T* tracePluginResult, uint8_t* &data, E* ftraceEvent);
80 template <typename T> bool ReportClockTimes(T& tracePluginResult);
82 template <typename T> bool ParseKernelSymbols(T& tracePluginResult);
84 template <typename T> bool ParsePerCpuStatus(T& tracePluginResult, int stage);
86 template <typename T, typename E>
87 bool ParseFtraceEvent(T* tracePluginResult, int cpuid, uint8_t page[], E* ftraceEvent);
/developtools/smartperf_host/trace_streamer/src/parser/rawtrace_parser/
Dftrace_field_processor.h27 template <typename T>
28 static T HandleIntField(const FieldFormat &format, uint8_t data[], size_t size) in HandleIntField()
30 static_assert(std::is_integral<T>::value, "T must be Integral type."); in HandleIntField()
31 T curValue = {}; in HandleIntField()
38 template <typename T>
39 static std::vector<T> HandleVectorIntField(const std::vector<FieldFormat> &fields, in HandleVectorIntField()
44 static_assert(std::is_integral<T>::value, "T must be Integral type."); in HandleVectorIntField()
47 std::vector<T> curValueVec = {}; in HandleVectorIntField()
53 T retval = {}; in HandleVectorIntField()
60 template <typename T>
[all …]
/developtools/profiler/device/plugins/hilog_plugin/include/
Dhilog_plugin.h48 template <typename T> void ParseLogLineInfo(const char* data, size_t len, T& hilogLineInfo);
50 template <typename T> void ParseLogLineData(const char* data, size_t len, T hilogInfoProto);
52 template <typename T> bool SetHilogLineDetails(const char* data, T& hilogLineInfo);
67 template <typename T> void FlushData(const T hilogLineProto);
68 template <typename T> void FlushDataOptimize(const T hilogLineProto);
/developtools/hiperf/test/unittest/common/native/include/
Dreport_test.h29 template<class T>
30 void CompareNumberTest(T &lowValue, T &midValue, T &highValue, in CompareNumberTest()
40 template<class T>
41 void CompareStringTest(T &lowValue, T &midValue, T &highValue, in CompareStringTest()
/developtools/profiler/proto_encoder/include/
Dbase_message.h112 template<typename T>
113 void AddFixed32(uint32_t fieldId, T v) in AddFixed32()
115 static_assert(sizeof(T) == SIZE_FIXED32, "AddFixed32: T is not 32 bits"); in AddFixed32()
145 template<typename T>
146 void AddFixed64(uint32_t fieldId, T v) in AddFixed64()
148 static_assert(sizeof(T) == SIZE_FIXED64, "AddFixed64: T is not 64 bits"); in AddFixed64()
178 template<typename T>
179 void AddVarint(uint32_t fieldId, T v) in AddVarint()
205 template<typename T>
206 void AddZigZagVarint(uint32_t fieldId, T v) in AddZigZagVarint()
[all …]
Dvarint_encode.h67 template<typename T>
68 inline typename std::make_unsigned<T>::type EncodeZigZag(T v) in EncodeZigZag()
71 return ((typename std::make_unsigned<T>::type)(v) << 1); in EncodeZigZag()
74 return ((typename std::make_unsigned<T>::type)(~v) << 1) + 1; in EncodeZigZag()
77 template<typename T>
78 inline uint32_t EncodeVarint(uint8_t* buf, T v) in EncodeVarint()
95 template<typename T>
96 inline uint32_t EncodeZigZagVarint(uint8_t* buf, T v) in EncodeZigZagVarint()
101 template<typename T>
102 inline void EncodeVarintPadding(uint8_t* buf, T v, uint32_t paddingSize) in EncodeVarintPadding()
/developtools/smartperf_host/trace_streamer/src/base/
Dstring_to_numerical.h48 template <typename T>
49 std::optional<T> StrToInt(const std::string &str, int32_t base = INTEGER_RADIX_TYPE_DEC)
53 T value;
54 if constexpr (std::is_same_v<T, uint32_t>) {
55 value = static_cast<T>(std::strtoul(str.c_str(), &endPtr, base));
56 } else if constexpr (std::is_same_v<T, int32_t>) {
57 value = static_cast<T>(std::strtol(str.c_str(), &endPtr, base));
58 } else if constexpr (std::is_same_v<T, uint64_t>) {
59 value = static_cast<T>(std::strtoull(str.c_str(), &endPtr, base));
60 } else if constexpr (std::is_same_v<T, int64_t>) {
[all …]
/developtools/smartperf_host/ide/src/trace/component/trace/base/
DTraceRowObject.ts19 export class TraceRowObject<T extends BaseStruct> {
31 public dataList: Array<T> | undefined;
32 public dataListCache: Array<T> = [];
35 public supplier: (() => Promise<Array<T>>) | undefined | null;
38 row: TraceRow<T>,
63 public preObject: TraceRowObject<T> | undefined | null;
64 public nextObject: TraceRowObject<T> | undefined | null;
/developtools/global_resource_tool/include/
Dsingleton.h24 template<typename T>
27 static T &GetInstance() in GetInstance()
33 static T instance_;
36 template<typename T>
37 T Singleton<T>::instance_;
/developtools/profiler/device/plugins/ftrace_plugin/tools/device_kernel_version/default/event_parsers/
Dftrace_regulator_event_parser.cpp20 template <typename T> void regulator_bypass_disable_func(T& msg, uint8_t data[], size_t size, const… in regulator_bypass_disable_func()
36 template <typename T>
37 void regulator_bypass_disable_complete_func(T& msg, uint8_t data[], size_t size, const EventFormat&… in regulator_bypass_disable_complete_func()
53 template <typename T> void regulator_bypass_enable_func(T& msg, uint8_t data[], size_t size, const … in regulator_bypass_enable_func()
69 template <typename T>
70 void regulator_bypass_enable_complete_func(T& msg, uint8_t data[], size_t size, const EventFormat& … in regulator_bypass_enable_complete_func()
86 template <typename T> void regulator_disable_func(T& msg, uint8_t data[], size_t size, const EventF… in regulator_disable_func()
102 template <typename T>
103 void regulator_disable_complete_func(T& msg, uint8_t data[], size_t size, const EventFormat& format) in regulator_disable_complete_func()
119 template <typename T> void regulator_enable_func(T& msg, uint8_t data[], size_t size, const EventFo… in regulator_enable_func()
[all …]
Dftrace_clk_event_parser.cpp20 template <typename T> void clk_disable_func(T& msg, uint8_t data[], size_t size, const EventFormat&… in clk_disable_func()
36 template <typename T> void clk_disable_complete_func(T& msg, uint8_t data[], size_t size, const Eve… in clk_disable_complete_func()
52 template <typename T> void clk_enable_func(T& msg, uint8_t data[], size_t size, const EventFormat& … in clk_enable_func()
68 template <typename T> void clk_enable_complete_func(T& msg, uint8_t data[], size_t size, const Even… in clk_enable_complete_func()
84 template <typename T> void clk_prepare_func(T& msg, uint8_t data[], size_t size, const EventFormat&… in clk_prepare_func()
100 template <typename T> void clk_prepare_complete_func(T& msg, uint8_t data[], size_t size, const Eve… in clk_prepare_complete_func()
116 template <typename T> void clk_set_parent_func(T& msg, uint8_t data[], size_t size, const EventForm… in clk_set_parent_func()
133 template <typename T> void clk_set_parent_complete_func(T& msg, uint8_t data[], size_t size, const … in clk_set_parent_complete_func()
150 template <typename T> void clk_set_phase_func(T& msg, uint8_t data[], size_t size, const EventForma… in clk_set_phase_func()
167 template <typename T> void clk_set_phase_complete_func(T& msg, uint8_t data[], size_t size, const E… in clk_set_phase_complete_func()
[all …]
Dftrace_binder_event_parser.cpp20 template <typename T> void binder_alloc_lru_end_func(T& msg, uint8_t data[], size_t size, const Eve… in binder_alloc_lru_end_func()
41 template <typename T> void binder_alloc_lru_start_func(T& msg, uint8_t data[], size_t size, const E… in binder_alloc_lru_start_func()
62 template <typename T> void binder_alloc_page_end_func(T& msg, uint8_t data[], size_t size, const Ev… in binder_alloc_page_end_func()
83 template <typename T> void binder_alloc_page_start_func(T& msg, uint8_t data[], size_t size, const … in binder_alloc_page_start_func()
104 template <typename T> void binder_command_func(T& msg, uint8_t data[], size_t size, const EventForm… in binder_command_func()
124 template <typename T> void binder_free_lru_end_func(T& msg, uint8_t data[], size_t size, const Even… in binder_free_lru_end_func()
145 template <typename T> void binder_free_lru_start_func(T& msg, uint8_t data[], size_t size, const Ev… in binder_free_lru_start_func()
166 template <typename T> void binder_ioctl_func(T& msg, uint8_t data[], size_t size, const EventFormat… in binder_ioctl_func()
187 template <typename T> void binder_ioctl_done_func(T& msg, uint8_t data[], size_t size, const EventF… in binder_ioctl_done_func()
207 template <typename T> void binder_lock_func(T& msg, uint8_t data[], size_t size, const EventFormat&… in binder_lock_func()
[all …]
/developtools/profiler/host/smartperf/client/client_ui/entry/src/main/ets/common/ui/detail/chart/utils/
DJArrayList.ets22 export class JArrayList<T> implements JList<T> {
23 public dataSouce: Array<T>;
37 append(element: T) {
41 add(element: T) {
46 addAll(newArray: JList<T>) {
58 insert(element: T) {
67 remove(element: T) {
81 contains(element: T) {
84 indexOf(element: T): number {
147 at(pos: number): T {
[all …]
/developtools/profiler/device/plugins/diskio_plugin/include/
Ddiskio_data_plugin.h53 template <typename T> void SetTimestamp(T& diskioData);
55 template <typename T> void SetDiskioData(T& diskioData, const char* pFile, uint32_t fileLen);
57 template <typename T> void WriteDiskioData(T& diskioData);
/developtools/profiler/device/plugins/hisysevent_plugin/include/
Dhisysevent_plugin.h44 …template <typename T> bool ParseSyseventLineInfo(const char* data, size_t len, T hisyseventInfoPro…
46 template <typename T> bool WriteResult(const T hisyseventInfoProto);
48 template <typename T> void FlushDataOptimize(const T hisyseventInfoProto);
/developtools/smartperf_host/ide/src/hdc/hdcclient/
DAsyncQueue.ts18 export class DataMessageQueue<T> {
19 private eleArray: Array<T>;
25 public push(entry: T): boolean {
33 public pop(): T | undefined {
46 export class AsyncQueue<T> {
/developtools/hdc/src/common/
Dserial_struct_define.h34 template<class T, class U> struct MemPtr<U T::*> {
35 using type = T;
130 template<class T> struct Descriptor {
131 static_assert(sizeof(T) == 0, "You need to implement descriptor for your own types");
159 template<class T> const auto &MessageType()
161 static const auto message = Descriptor<T>::type();
165 template<class T, class Enable = void> struct Serializer;
176 template<class T, class V, class F, class W, class Enable = void>
180 template<class T, class V, class F, class W>
181 struct HasSerializePacked<T, V, F, W,
[all …]
/developtools/hdc/hdc_rust/src/cffi/
Dserial_struct_define.h37 template<class T, class U> struct MemPtr<U T::*> {
38 using type = T;
133 template<class T> struct Descriptor {
134 static_assert(sizeof(T) == 0, "You need to implement descriptor for your own types");
162 template<class T> const auto &MessageType()
164 static const auto message = Descriptor<T>::type();
168 template<class T, class Enable = void> struct Serializer;
179 template<class T, class V, class F, class W, class Enable = void>
183 template<class T, class V, class F, class W>
184 struct HasSerializePacked<T, V, F, W,
[all …]

1234567891011