Skip to content

Commit

Permalink
Revert "[analyzer] Use maximum CPU resources by default during analysis"
Browse files Browse the repository at this point in the history
  • Loading branch information
gyorb authored Nov 11, 2020
1 parent 21b6a35 commit c6367de
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions analyzer/codechecker_analyzer/cmd/analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import argparse
import collections
import json
import multiprocessing
import os
import re
import shutil
Expand Down Expand Up @@ -129,7 +128,7 @@ def add_arguments_to_parser(parser):
type=int,
dest="jobs",
required=False,
default=multiprocessing.cpu_count(),
default=1,
help="Number of threads to use in analysis. More "
"threads mean faster analysis at the cost of "
"using more memory.")
Expand Down
3 changes: 1 addition & 2 deletions analyzer/codechecker_analyzer/cmd/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"""

import argparse
import multiprocessing
import os
import shutil
import tempfile
Expand Down Expand Up @@ -201,7 +200,7 @@ def add_arguments_to_parser(parser):
type=int,
dest="jobs",
required=False,
default=multiprocessing.cpu_count(),
default=1,
help="Number of threads to use in analysis. "
"More threads mean faster analysis at "
"the cost of using more memory.")
Expand Down
4 changes: 2 additions & 2 deletions docs/analyzer/user_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ log arguments:
analyzer arguments:
-j JOBS, --jobs JOBS Number of threads to use in analysis. More threads
mean faster analysis at the cost of using more memory.
(default: <CPU count>)
(default: 1)
-c, --clean Delete analysis reports stored in the output
directory. (By default, CodeChecker would keep reports
and overwrites only those files that were update by
Expand Down Expand Up @@ -749,7 +749,7 @@ optional arguments:
-h, --help show this help message and exit
-j JOBS, --jobs JOBS Number of threads to use in analysis. More threads
mean faster analysis at the cost of using more memory.
(default: <CPU count>)
(default: 1)
-i SKIPFILE, --ignore SKIPFILE, --skip SKIPFILE
Path to the Skipfile dictating which project files
should be omitted from analysis. Please consult the
Expand Down

0 comments on commit c6367de

Please sign in to comment.