Question: Is there a way to determine change frequency of a file?

The situation is i have a log file which will be rolling all the time, in that way i can say my application is running .

if it's not writing any then i can say there's some problem.
So instead of using tail and see manually if the logs are rolling , how can i check if the log is rolling programmatically like analysing it for 2 mins and checking if logs are being written?
Is there a way to track the change interval by using stat in some program kinda ???

i mean i can take 2 mins as parameter,at first storing mtime and after 2mins checking with new time and confirming it's changed, but i need to know the frequency kinda like x modifications/time or number.of.lines written/sec kinda

Answer: 
Just missed a few things on this one. 

Here ya go.

<http://jsfiddle.net/EN7y4/3/>

Namely. You had "self.theWeight" in function Reading instead of "this."...

Happy Coding!
```
alert(self.users()[0].theReadings()[0].theWeight();

```

I would recommend removing the 'thes'. That's an uncommon style.