Giter Club home page Giter Club logo

Comments (5)

sindresorhus avatar sindresorhus commented on July 28, 2024

Can include output from time-grunt?

from time-grunt.

cibulka avatar cibulka commented on July 28, 2024

Sure! This is output of Grunt watch task with jit-grunt enabled. Jit loads only plugins used in a current task, to speed things up (which it did greatly for me).

>> File "assets/styles/dev/base/_base.scss" changed.
Running "compass:child" (compass) task
    write style.css (1.43s)

Done, without errors.


Execution Time (2014-09-18 10:16:30 UTC)
loading grunt-contrib-compass  377ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 13%
compass:child                   2.5s  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 86%
Total 2.9s

Completed in 5.027s at Thu Sep 18 2014 10:16:33 GMT+0000 (UTC) - Waiting...

Should I also disable jit plugin, require other plugins manually and come back with new output?

from time-grunt.

cibulka avatar cibulka commented on July 28, 2024

Okay, I can confirm that rougly the same behaviour happens to me with a Grunt watch on a local machine. Differences move between 20 to 50%, but still are there.

Completed in 2.039s at Fri Sep 19 2014 10:16:39 GMT+0200 (CEST) - Waiting...
>> File "assets/styles/dev/style.scss" changed.
Running "compass:child" (compass) task
    write style.css (0.257s)

Done, without errors.


Execution Time (2014-09-19 08:16:45 UTC)
loading grunt-contrib-compass  38ms  ▇▇▇▇ 3%
compass:child                  1.4s  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 97%
Total 1.5s

Completed in 1.820s at Fri Sep 19 2014 10:16:47 GMT+0200 (CEST) - Waiting...
>> File "assets/styles/dev/style.scss" changed.
Running "compass:child" (compass) task
    error assets/styles/dev/style.scss (Line 7 of /Users/Cibulka/.rvm/gems/ruby-2.1.2/gems/compass-core-1.0.1/stylesheets/compass/_support.scss: Did not recognize your adapter specification (cannot load such file -- multi_json/adapters/json_gem). for `browsers')
Compilation failed in 1 files.
Warning: ↑ Use --force to continue.

Aborted due to warnings.


Execution Time (2014-09-19 08:16:50 UTC)
loading grunt-contrib-compass  35ms  ▇▇▇▇ 2%
compass:child                  1.4s  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 97%
Total 1.4s

(Try to ignore the error above, this is should be somehow related to Compass's compass/support feature and I'm trying to resolve the issue here: Compass/compass#1831)

And to clarify - I don't want you to do my debugging for me :), I just need to know, if the described behaviour is normal. If it's not, I would be glad if you pointed me to some direction where to start looking for the issue (but that is totally optional).

from time-grunt.

sindresorhus avatar sindresorhus commented on July 28, 2024

The time is measured from the require('time-grunt')(grunt); call to the process exits. Anything you do before that call will not be measured.

The watch task might be interfering with it somehow. Does it still show the wrong time when run normally?

from time-grunt.

cibulka avatar cibulka commented on July 28, 2024

If by "normally" you mean outside the virtual machine, than yes, there are still some differences between measured and actual time. If some task takes longer time to execute, the difference increases. It usually goes around 1/3-1/4 of the total time.

There, however, may be something wrong with my Gruntfile configuration, as it does a lot of things at once. As some tasks are taking forever (Compass watch task - between 3 and 20! seconds), I am trying to troubleshoot the thing.

My Gruntfile: https://gist.github.com/cibulka/5931c16c8472eac4849e

Latest watch task:

Completed in 5.494s at Thu Sep 25 2014 22:37:08 GMT+0200 (CEST) - Waiting...
>> File "../tvar-wp-theme/assets/styles/dev/layout/_layout.scss" changed.
Running "compass:child" (compass) task
    write /Users/Cibulka/Sites-WP/tvar.dev/web/app/themes/tvar-wp-theme/style.css (3.035s)

Done, without errors.


Execution Time (2014-09-25 20:54:02 UTC)
loading grunt-contrib-compass  273ms  ▇▇▇ 2%
compass:child                  13.6s  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 98%
Total 13.9s

Completed in 19.825s at Thu Sep 25 2014 22:54:15 GMT+0200 (CEST) - Waiting...

So answer to my question - which was iftime-grunt result should be equal to the real time - is yes, thank you. :) Closing.

from time-grunt.

Related Issues (20)

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.