• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2021 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 #ifndef BYTRACE_HI_SYS_EVENT_PARSER_H
16 #define BYTRACE_HI_SYS_EVENT_PARSER_H
17 
18 #include "common_types.h"
19 #include "string_help.h"
20 #include "log.h"
21 #include "string_to_numerical.h"
22 #include "parser_base.h"
23 #include "event_parser_base.h"
24 #include "trace_data_cache.h"
25 #include "hi_sysevent_measure_filter.h"
26 
27 namespace SysTuning {
28 namespace TraceStreamer {
29 class BytraceHiSysEventParser : public EventParserBase {
30 public:
31     BytraceHiSysEventParser(TraceDataCache* dataCache, const TraceStreamerFilters* filters);
32     ~BytraceHiSysEventParser();
33     void ParseHiSysEventDataItem(const std::string& buffer, const uint64_t lineSeq, bool& haveSplitSeg);
34     void Finish();
35 };
36 } // namespace TraceStreamer
37 } // namespace SysTuning
38 
39 #endif // BYTRACE_HI_SYS_EVENT_PARSER_H
40