Giter Site home page Giter Site logo

hyperlogic / hifi_tests Goto Github PK

View Code? Open in Web Editor NEW

This project forked from highfidelity/hifi_tests

0.0 3.0 0.0 72.69 MB

A set of test scripts and scenes for benchmarking the High Fidelity client

License: Apache License 2.0

JavaScript 100.00%

hifi_tests's Introduction

This repository contains a suite of scripts and scenes for benchmarking Interface.

Creating a trace

To use the benchmarking functionality, navigate to the hifi_tests/benchmarks directory, select the desired benchmark script, and run Interface from the command line as follows:

"%INTERFACE_EXE_PATH%" --testScript "%BENCHMARK_SCRIPT%"

Where %INTERFACE_EXE_PATH% is the path to the interface.exe you want to test, and %BENCHMARK_SCRIPT% is the benchmark you want to run. For example, to run the manual benchmark, which will add a "toggleTrace" button to your toolbar/tablet, one might type:

"C:\Program Files\High Fidelity\interface.exe" --testScript manual.js

Similarly, you can benchmark PRs:

"C:\Program Files\High Fidelity - PR12345\interface.exe" --testScript manual.js

This will create a zipped trace file, likely in your Documents/traces folder.

Viewing a trace

To view a trace, open Chrome and navigate to "chrome://tracing". Drag and drop the trace file from your files to this tab. After a few seconds Chrome will display all the activity on every thread captured during the trace.

Adding Profile Ranges

For traces to be useful, you may want to define your own profile ranges. To do so in a script, use Script.beginProfileRange("name of your range") and Script.endProfileRange("name of your range"). For example, here is a version of handControllerGrab.js that uses a few profile ranges.

You can also create profile ranges on the C++ side using the macros defined in hifi\libraries\shared\src\Profile.h. Some of these have additional functionality, like setting the profile range color or recording additional information in a payload.

hifi_tests's People

Contributors

alanzimmerman avatar hyperlogic avatar jherico avatar nissimhadar avatar samcake avatar samgondelman avatar zvork avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.