mirror of
https://github.com/mandiant/capa.git
synced 2025-12-12 15:49:46 -08:00
fix merge conflicts
This commit is contained in:
18
capa/main.py
18
capa/main.py
@@ -853,15 +853,15 @@ def install_common_args(parser, wanted=None):
|
||||
help=f"select sample format, {format_help}",
|
||||
)
|
||||
|
||||
if "backend" in wanted:
|
||||
parser.add_argument(
|
||||
"-b",
|
||||
"--backend",
|
||||
type=str,
|
||||
help="select the backend to use",
|
||||
choices=(BACKEND_VIV,),
|
||||
default=BACKEND_VIV,
|
||||
)
|
||||
if "backend" in wanted:
|
||||
parser.add_argument(
|
||||
"-b",
|
||||
"--backend",
|
||||
type=str,
|
||||
help="select the backend to use",
|
||||
choices=(BACKEND_VIV,),
|
||||
default=BACKEND_VIV,
|
||||
)
|
||||
|
||||
if "rules" in wanted:
|
||||
parser.add_argument(
|
||||
|
||||
@@ -59,9 +59,9 @@ def main():
|
||||
gc.collect()
|
||||
|
||||
process = psutil.Process(os.getpid())
|
||||
print(f" duration: {(t1-t0):.2f}")
|
||||
print(f" rss: {(process.memory_info().rss / 1024 / 1024):.1f} MiB")
|
||||
print(f" vms: {(process.memory_info().vms / 1024 / 1024):.1f} MiB")
|
||||
print(f" duration: {t1 - t0:.02f}s")
|
||||
print(f" rss: {process.memory_info().rss / 1024 / 1024:.1f} MiB")
|
||||
print(f" vms: {process.memory_info().vms / 1024 / 1024:.1f} MiB")
|
||||
|
||||
print("done.")
|
||||
gc.collect()
|
||||
|
||||
Reference in New Issue
Block a user