Coder Social home page Coder Social logo

Comments (8)

aldenml avatar aldenml commented on August 18, 2024

Just to let you know that I'm waiting for this: arvidn/libtorrent#65

However, the doc you linked is obsolete and probably the tools (in python) too.

from frostwire-jlibtorrent.

aldenml avatar aldenml commented on August 18, 2024

Ok, now libtorrent is compiled with <disk-stats>on and to effectively enable it you need to do like https://github.com/frostwire/frostwire-jlibtorrent/blob/million-torrents/src/main/java/com/frostwire/jlibtorrent/demo/DownloadTorrent.java#L22

If you want to test, you will need to compile the linux binary yourself until I solve the maven publishing issue.

from frostwire-jlibtorrent.

dessalines avatar dessalines commented on August 18, 2024

Thanks! I'm out for a few days, but will compile and test this as soon as I get back.

from frostwire-jlibtorrent.

dessalines avatar dessalines commented on August 18, 2024

Hey @aldenml , I'd like to start testing with disk stats on, let me know the best way to do this. If I need to compile my own binary, which build-linux.sh script I should use(The ones in the swig/ folder don't work).

from frostwire-jlibtorrent.

aldenml avatar aldenml commented on August 18, 2024

Hi @tchoulihan, the good thing about the new binary is that it's already compiled with that flag, just call default_storage.disk_write_access_log(true); at the beginning and default_storage.disk_write_access_log(false); at the end. See https://github.com/frostwire/frostwire-jlibtorrent/blob/master/src/main/java/com/frostwire/jlibtorrent/demo/DownloadTorrent.java#L22

After that, you should end with a file called "file_access.log" in your working directory.

If still you want to build the binary, let me know what problems are you getting in another ticket.

from frostwire-jlibtorrent.

dessalines avatar dessalines commented on August 18, 2024

Hey @aldenml, should I take this up with arvid? I'm trying to run the parse_disk_log.py on the file, and its not working. Is that the right test? I just guessed that that python file is the right one, but there are other python tests there, but none of them apparently process a file_access.log file.

$: python parse_disk_log.py file_access.log 
Traceback (most recent call last):
  File "parse_disk_log.py", line 43, in <module>
    new_time = long(l[0])
ValueError: invalid literal for long() with base 10: ''

from frostwire-jlibtorrent.

aldenml avatar aldenml commented on August 18, 2024

Yes, you should solve that with @arvid. I don't know anything about it to help you.

from frostwire-jlibtorrent.

dessalines avatar dessalines commented on August 18, 2024

Gotcha.

from frostwire-jlibtorrent.

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.