Skip to content
Snippets Groups Projects
Select Git revision
  • 06c568bf8457db90beac98a2492accccaf4cac46
  • mui5-tetras-main-stable default protected
  • mui5-tetras-main-old-stable
  • preprod protected
  • 75-dernieres-ameliorations-avant-workshop-du-7-02
  • wip-fix-xywh
  • wip-positionement-annot
  • wip-surface-transformer
  • uploads-file
  • 69-la-video-demare-quand-on-fait-glisser-le-slider-et-le-clic-creer-un-decalage-entre-le-player
  • 61-recettage-des-outils-d-annotation
  • gestion_multiple_ouverture_pannel_annotation
  • autorisation_un_pannel_annotation
  • autorisation_un_pannel_edition_annotation
  • récupération_temps_video
  • save-shapes-and-position
  • fix-error-create-annotation-pannel
  • time-saving-on-annotation
  • tetras-main protected
  • fix-poc-mirador
  • tetras-antho-test
21 results

jest.config.js

Blame
  • Readme.md 1.63 KiB

    Python timing

    This is a simple libraire to do fine timing of python application and measure parallelism

    Install

    pip

    pip3 install git+https://gitlab.tetras-libre.fr/tetras-libre/performance-analysis/pyTiming#egg=pyTiming

    For developpement

    git clone https://gitlab.tetras-libre.fr/tetras-libre/performance-analysis/pyTiming
    pip3 install -e .

    As a dependency in your setup.py

    from setuptools.command.install import install
    from setuptools.command.develop import develop
    from setuptools import setup, find_packages
    import pip
    
    ...
    
    gitDeps = [
    'git+https://gitlab.tetras-libre.fr/tetras-libre/performance-analysis/pyTiming#egg=pyTiming',
        ]
    
    
    def customRun(command_subclass):
        orig_run = command_subclass.run
    
        def modified_run(self):
            for dep in gitDeps:
                pip.main(['install', dep])
    
            orig_run(self)
    
        command_subclass.run = modified_run
        return command_subclass
    
    @customRun
    class actionsOnInstall(install):
        pass
    
    
    @customRun
    class actionsOnDevelop(develop):
        pass
    
    ...
    
    setup(
    ...
        cmdclass={'install': actionsOnInstall,
                  'develop': actionsOnDevelop,
    ...
    )
    

    Usage