38 lines
1.5 KiB
C
38 lines
1.5 KiB
C
/**
|
|
* Copyright (c) 2021 OceanBase
|
|
* OceanBase CE is licensed under Mulan PubL v2.
|
|
* You can use this software according to the terms and conditions of the Mulan PubL v2.
|
|
* You may obtain a copy of Mulan PubL v2 at:
|
|
* http://license.coscl.org.cn/MulanPubL-2.0
|
|
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
|
|
* EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
|
|
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
|
|
* See the Mulan PubL v2 for more details.
|
|
*/
|
|
|
|
#ifndef EASY_SUMMARY_H
|
|
#define EASY_SUMMARY_H
|
|
|
|
#include "easy_define.h"
|
|
|
|
#include "io/easy_io_struct.h"
|
|
#include "io/easy_log.h"
|
|
|
|
EASY_CPP_START
|
|
//////////////////////////////////////////////////////////////////////////////////
|
|
// interface
|
|
extern easy_summary_t* easy_summary_create();
|
|
extern void easy_summary_destroy(easy_summary_t* sum);
|
|
extern easy_summary_node_t* easy_summary_locate_node(int fd, easy_summary_t* sum, int hidden);
|
|
extern void easy_summary_destroy_node(int fd, easy_summary_t* sum);
|
|
extern void easy_summary_copy(easy_summary_t* src, easy_summary_t* dest);
|
|
extern easy_summary_t* easy_summary_diff(easy_summary_t* ns, easy_summary_t* os);
|
|
extern void easy_summary_html_output(easy_pool_t* pool, easy_list_t* bc, easy_summary_t* sum, easy_summary_t* last);
|
|
extern void easy_summary_raw_output(easy_pool_t* pool, easy_list_t* bc, easy_summary_t* sum, const char* desc);
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
EASY_CPP_END
|
|
|
|
#endif
|