mmparse: provide am_anr and LMK count

Signed-off-by: Chun Chen <chun.chen@archermind.com>
mmparse: eat multiple event / kernel logs

1. user should specify input directory
2. search all files to find event / kernel logs
3. let parser eat multiple logs

Signed-off-by: Chun Chen <chun.chen@archermind.com>
mmparse: add '-o --output' option to sepcify generated report name

Signed-off-by: Chun Chen <chun.chen@archermind.com>
mmparse: add some new features

1. parse bugreport to detect project code, rom version and serail number
2. once #1 fail to find bugreport, or cannot detect them, ask user to enter
3. add oom-killer parser of Kernel log
4. add Kmemleak parser to count leakage pattern
5. adjust document formating

Signed-off-by: Chun Chen <chun.chen@archermind.com>
mmparse: correct option description

Signed-off-by: Chun Chen <chun.chen@archermind.com>
mmparse: change ANR LMK section text

Signed-off-by: Chun Chen <chun.chen@archermind.com>
mmparse: strict input files

1. allow meminfo only
2. add exception handler of none-existing file

Signed-off-by: Chun Chen <chun.chen@archermind.com>
mmparse: draft implementation of detecting system memory leakage

1. Algorithm based on beta coefficiency
2. Method summary
    a. check data range in each hour, devide into 10 groups, if continious 4 of them has increase tendency, mark this hour 'leak'
    b. if there are over 5 continious hours 'leak', then this data set can be considered have leakage
    c. the increase tendency of every interval is decided by beta coefficiency

Signed-off-by: Chun Chen <chun.chen@archermind.com>
mmparse: update kmemleak pattern-function mapping

Signed-off-by: Chun Chen <chun.chen@archermind.com>
mmparse: let content blank when logs are not available

Signed-off-by: Chun Chen <chun.chen@archermind.com>
mmparse: kmemleak pattern detection

Analyze last scanned kmemleak. Once the objects have old ages, mark them leak.

Signed-off-by: Chun Chen <chun.chen@archermind.com>
mmparse: change text format of system memory leakage

Signed-off-by: Chun Chen <chun.chen@archermind.com>
mmparse: PDF building progress display in console

Signed-off-by: Chun Chen <chun.chen@archermind.com>