Git Product home page Git Product logo

profiler's Introduction

Profiler

This app provides a profiler to find performance related issues

Don't use in a production system.

How to use (short introduction)

  1. Clone the app and checkout the relevant stableX branch.
  2. Build the JavaScript with npm i && npm run build
  3. Enable the app occ app:enable profiler
  4. Enable profiling by running occ profiler:enable
  5. Open nextcloud with an admin account, you should see the profiler toolbar

How to use (long introduction)

A tutorial page is available in the developer documentation

profiler's People

Contributors

carlschwan avatar come-nc avatar dependabot[bot] avatar fenn-cs avatar github-actions[bot] avatar icewind1991 avatar juliushaertl avatar kesselb avatar nextcloud-bot avatar nextcloud-command avatar nickvergessen avatar pulsejet avatar skjnldsv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

profiler's Issues

show queries for events

  • show the current event stack in the db query view
  • show number of queries per event
  • show list of queries in event view

GitHub action on stable25 fails

I think the problem is that the app can not be enabled anymore on stable25 when checking out master, even with --force.
I think it would be good when we allow specifying a branch that should be cloned in
https://github.com/nextcloud/profiler/blob/master/action/index.js#L62

Master also would currently clone a branch cli but that does not exist, but we would need this in a configurable way, so that we can checkout stable25 when server is stable25, etc.
I wouldn't like to hard code it, so that it is easier to test changes in this app by specifying a different branch of the profiler to be checked out.

compare webui

There is a compare occ command (shows query differences) but nothing in the webui atm

App Store release

The app is not included in the base install but can't be installed via the app-store either.

Please release the app in the Nextcloud app-store.

TypeError: is_file(): Argument #1 ($filename) must be of type string, SplFileInfo given in /var/www/html/lib/private/Profiler/FileProfilerStorage.php:103

$ occ profiler:clear
An unhandled exception has been thrown:
TypeError: is_file(): Argument #1 ($filename) must be of type string, SplFileInfo given in /var/www/html/lib/private/Profiler/FileProfilerStorage.php:103
Stack trace:
#0 /var/www/html/lib/private/Profiler/FileProfilerStorage.php(103): is_file(Object(SplFileInfo))
#1 /var/www/html/lib/private/Profiler/Profiler.php(119): OC\Profiler\FileProfilerStorage->purge()
#2 /var/www/html/apps-extra/profiler/lib/Command/Clear.php(30): OC\Profiler\Profiler->clear()
#3 /var/www/html/apps-extra/photos/vendor/symfony/console/Command/Command.php(298): OCA\Profiler\Command\Clear->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#4 /var/www/html/core/Command/Base.php(177): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#5 /var/www/html/apps-extra/photos/vendor/symfony/console/Application.php(1040): OC\Core\Command\Base->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#6 /var/www/html/apps-extra/photos/vendor/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand(Object(OCA\Profiler\Command\Clear), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#7 /var/www/html/apps-extra/photos/vendor/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#8 /var/www/html/lib/private/Console/Application.php(215): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 /var/www/html/console.php(100): OC\Console\Application->run()
#10 /var/www/html/occ(11): require_once('/var/www/html/c...')
#11 {main}โŽ       

"resend and compare"

Would be good to have a button that resends the request currently open in the webui and present a comparison between the previous state and the new

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.