Giter Site home page Giter Site logo

watchdog's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

watchdog's Issues

strictMode: true is not working

Nice library!
I tried with strictMode: true is not working at all when using Carthage, but if I copied Watchdog.swift and it is working perfectly now.

Hope you can fix it, Thanks!

It's a beauty class, but I just have a question

When It's switched to main thread, and execute

self.pingTaskIsRunning = false
self.semaphore.signal()

Is it will consume main thread resources too much, if I set threshold a little number(just like 50 ms)?

Is it possible to change the timeout time during execution?

Watchdog is very useful, thanks a lot, but I have a problem:
During normal execution of my app, I can set a rather small timeout time, say 0.5 sec. This works fine.
However, I have a number of unit stress tests that use unrealistic large data, just to identify potential bottlenecks. To setup these tests, the main thread is busy more than the timeout time of 0.5 sec.
I could of course increase it, but then I would not catch certain problems.
So, what I would like to do is either to disable Watchdog only during the execution of my test setup, or change its timeout time.
Is this possible?

Fully downloaded file from Chrome is not observed. Only the .crdownload is observed.

('Was Created/Downloaded: ', '/Users/username/Downloads/LoadConf (1).pdf.crdownload')

`
import sys
import os
import time
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler

class Event(FileSystemEventHandler):
def on_created(self, event):
print('Was Created/Downloaded: ', event.src_path)

if name == 'main':
path = sys.argv[1] if len(sys.argv) > 1 else '.'
event_handler = Event()
observer = Observer()
observer.schedule(event_handler, path, recursive=True)
observer.start()
try:
while True:
time.sleep(5)
print('Waiting for a change...')
except KeyboardInterrupt:
observer.stop()
observer.join()
`

OSX support

Is there a reason to not support OS X? I didn't try it out yet, but looking at the code, I didn't see anything blocking

Can't get it to work

Am I missing something?

I wrote some code in viewDidLoad() of a VC to block the main thread for seconds (just a long loop), and the watchdog won't fire (not printing anything). Am I missing something?

Carthage

Hi!

Carthage support doesn't seem to be working.

Based on the readme, I added github "wojteklukaszuk/Watchdog" ~> 1.0.2 to my Cartfile. Here's the result:

~/B ❯❯❯ carthage update
*** Fetching Watchdog
No available version for github "wojteklukaszuk/Watchdog" satisfies the requirement: ~> 1.0.2

So I removed ~> 1.0.2, but it seems Carthage tries to build the example project instead of the Framework:

~/B ❯❯❯ carthage update
*** Fetching Watchdog
*** Checking out Watchdog at "1.0.1"
*** xcodebuild output can be found in /var/folders/ws/xc68hw2j7kb5l6hqtmz0kh7m0000gn/T/carthage-xcodebuild.AfTOro.log
Project "Example.xcodeproj" has no shared schemes

Watchdog is so cool,and I want a new feature

Watchdog is so cool, it works well, when watchdog find on the main thread is blocking, and I want to know who block the main thread. but I do not know how to print the callstack?

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.