597b0f74e2
This library provide API to measure time spend in particular parts of code and to calculate optimal polling time. To calculate a those statistics application code need to be divided into parts (called jobs) that do something. It is up to application to decide what is considered a job. Series of jobs must be surrounded with the rte_jobstats_context_start() and rte_jobstats_context_finish() calls. After that, jobs might be started. Each job must be surrounded with rte_jobstats_start() and rte_jobstats_finish() calls. After job finishes its execution, period in which it should be called again is adjusted. It might be used to minimize time wasted on unnecessary polls/calls. Adjustment is based on data provided by job itself (ex: number of packets it processed). After all jobs in serie are executed fallowing statistics are updated and might be used by application. Statistics can be reset. Some of provided statistic data: - total/min/max execution - time spent in executing jobs. - total/min/max management - time spent outside execution area. This value might be used to measure overhead of scheduling jobs. This time also contains overhead of rte_jobstats library itself. - number of loops that executed at least one job - executed jobs - time when statistics were reset. Each job provide total/min/max execution time and execution count statistics. Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
81 lines
3.4 KiB
Plaintext
81 lines
3.4 KiB
Plaintext
# BSD LICENSE
|
|
#
|
|
# Copyright 2013 6WIND S.A.
|
|
#
|
|
# Redistribution and use in source and binary forms, with or without
|
|
# modification, are permitted provided that the following conditions
|
|
# are met:
|
|
#
|
|
# * Redistributions of source code must retain the above copyright
|
|
# notice, this list of conditions and the following disclaimer.
|
|
# * Redistributions in binary form must reproduce the above copyright
|
|
# notice, this list of conditions and the following disclaimer in
|
|
# the documentation and/or other materials provided with the
|
|
# distribution.
|
|
# * Neither the name of 6WIND S.A. nor the names of its
|
|
# contributors may be used to endorse or promote products derived
|
|
# from this software without specific prior written permission.
|
|
#
|
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
PROJECT_NAME = DPDK
|
|
INPUT = doc/api/doxy-api-index.md \
|
|
lib/librte_eal/common/include \
|
|
lib/librte_eal/common/include/generic \
|
|
lib/librte_acl \
|
|
lib/librte_distributor \
|
|
lib/librte_ether \
|
|
lib/librte_hash \
|
|
lib/librte_ip_frag \
|
|
lib/librte_jobstats \
|
|
lib/librte_kni \
|
|
lib/librte_kvargs \
|
|
lib/librte_lpm \
|
|
lib/librte_malloc \
|
|
lib/librte_mbuf \
|
|
lib/librte_mempool \
|
|
lib/librte_meter \
|
|
lib/librte_net \
|
|
lib/librte_pipeline \
|
|
lib/librte_port \
|
|
lib/librte_power \
|
|
lib/librte_pmd_bond \
|
|
lib/librte_reorder \
|
|
lib/librte_ring \
|
|
lib/librte_sched \
|
|
lib/librte_table \
|
|
lib/librte_timer \
|
|
lib/librte_vhost
|
|
FILE_PATTERNS = rte_*.h \
|
|
cmdline.h
|
|
PREDEFINED = __DOXYGEN__ \
|
|
__attribute__(x)= \
|
|
RTE_MBUF_REFCNT
|
|
|
|
OPTIMIZE_OUTPUT_FOR_C = YES
|
|
ENABLE_PREPROCESSING = YES
|
|
MACRO_EXPANSION = YES
|
|
EXPAND_ONLY_PREDEF = YES
|
|
EXTRACT_STATIC = YES
|
|
DISTRIBUTE_GROUP_DOC = YES
|
|
HIDE_UNDOC_MEMBERS = YES
|
|
HIDE_UNDOC_CLASSES = YES
|
|
HIDE_SCOPE_NAMES = YES
|
|
GENERATE_DEPRECATEDLIST = NO
|
|
VERBATIM_HEADERS = NO
|
|
ALPHABETICAL_INDEX = NO
|
|
|
|
HTML_TIMESTAMP = NO
|
|
HTML_DYNAMIC_SECTIONS = YES
|
|
SEARCHENGINE = NO
|