CodeCommitsIssuesPull requestsActionsInsightsSecurity
e3ed311273f8c9905a658148f852b3c2188c4795

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

utils/check-style/check-include-stat

27lines · modecode

1#!/bin/sh
2set -e
3
4CUR_DIR=`dirname $0`
5CUR_DIR=`readlink -f $CUR_DIR`
6CUR_DIR="${CUR_DIR}/"
7
8RESULT_FILE=${RESULT_FILE:=${CUR_DIR}check-include.log}
9finish() {
10 echo include check failed:
11 cat $RESULT_FILE
12}
13trap finish 0 1 3 6 15
14
15sh ${CUR_DIR}check-include > $RESULT_FILE 2>&1
16
17echo Results:
18echo Top by memory:
19cat $RESULT_FILE | sort -nrk4 | head -n20
20
21echo Top by time:
22cat $RESULT_FILE | sort -nrk3 | head -n20
23
24echo Top by includes:
25cat $RESULT_FILE | sort -nrk2 | head -n20
26
27trap "" EXIT