Search completed in 1.04 seconds.
nsIIdleService
widget/nsi
idleservice.idlscriptable the
idle service lets you monitor how long the user has been '
idle', that is they have not used their mouse or keyboard.
... 1.0 66 introduced gecko 1.9.1 inherits from: nsisupports last changed in gecko 16 (firefox 16 / thunderbird 16 / seamonkey 2.13) you can get the
idle time directly, but in most cases you will want to register an observer for a predefined interval.
... the observer will get an '
idle' notification when the user is
idle for that interval (or longer), and receive a 'back' (gecko 3 to 15) or 'active' (gecko 16+) notification when the user starts using their computer again.
...And 22 more matches
window.requestIdleCallback() - Web APIs
the window.request
idlecallback() method queues a function to be called during a browser's
idle periods.
... you can call request
idlecallback() within an
idle callback function to schedule another callback to take place no sooner than the next pass through the event loop.
... syntax var handle = window.request
idlecallback(callback[, options]) return value an id which can be used to cancel the callback by passing it into the window.cancel
idlecallback() method.
...And 4 more matches
IdleDeadline - Web APIs
the
idledeadline interface is used as the data type of the input parameter to
idle callbacks established by calling window.request
idlecallback().
... it offers a method, timeremaining(), which lets you determine how much longer the user agent estimates it will remain
idle and a property, didtimeout, which lets you determine if your callback is executing because its timeout duration expired.
... properties
idledeadline.didtimeout read only a boolean whose value is true if the callback is being executed because the timeout specified when the
idle callback was installed has expired.
...And 2 more matches
window.cancelIdleCallback() - Web APIs
summary the window.cancel
idlecallback() method cancels a callback previously scheduled with window.request
idlecallback().
... syntax window.cancel
idlecallback(handle); parameters handle the id value returned by window.request
idlecallback() when the callback was established.
... desktopmobilechromeedgefirefoxinternet exploreroperasafariandroid webviewchrome for androidfirefox for androidopera for androidsafari on iossamsung internetcancel
idlecallback experimentalchrome full support 47edge full support 79firefox full support 55 full support 55 full support 53disabled disabled from version 53: this feature is behind...
...And 2 more matches
IdleDeadline.didTimeout - Web APIs
the read-only didtimeout property on the
idledeadline interface is a boolean value which indicates whether or not the
idle callback is being invoked because the timeout interval specified when window.request
idlecallback() was called has expired.
... if didtimeout is true, the
idledeadline object's timeremaining() method will return approximately 0.
...
idle callbacks support the concept of a timeout in order to ensure that whatever task they're meant to perform actually happens, even if the user agent never has enough
idle time available.
... syntax var timedout =
idledeadline.didtimeout; value a boolean which is true if the callback is running due to the callback's timeout period elapsing or false if the callback is running because the user agent is
idle and is offering time to the callback.
IdleDeadline.timeRemaining() - Web APIs
the timeremaining() method on the
idledeadline interface returns the estimated number of milliseconds remaining in the current
idle period.
... syntax timeremaining =
idledeadline.timeremaining(); return value a domhighrestimestamp value (which is a floating-point number) representing the number of milliseconds the user agent estimates are left in the current
idle period.
... if the
idledeadline object's didtimeout property is true, this method returns zero.
Background Tasks API - Web APIs
the cooperative scheduling of background tasks api (also referred to as the background tasks api or simply the request
idlecallback() api) provides the ability to queue tasks to be executed automatically by the user agent when it determines that there is free time to do so.
...window.request
idlecallback() makes it possible to become actively engaged in helping to ensure that the browser's event loop runs smoothly, by allowing the browser to tell your code how much time it can safely use without causing the system to lag.
... getting the most out of
idle callbacks because
idle callbacks are intended to give your code a way to cooperate with the event loop to ensure that the system is utilized to its full potential without over-tasking it, resulting in lag or other performance problems, you should be thoughtful about how you go about using them.
...And 27 more matches
Observer Notifications
user-interaction-active nsidomwindow null sent once every 5000ms while this chrome document sees some kind of user activity (for example, keyboard or mouse events), and at the exact moment of the state transition from
idle to active.
...
idle service this topic indicates when actions related to the
idle service, provided by the nsi
idleservice interface.
... unlike the user-interaction-active and user-interaction-inactive topics listed above, the
idle service monitors user activity in general, whether related to the mozilla application or not (acting somewhat like the user activity/inactivity events a screen saver would be interested in).
...And 6 more matches
Index - Web APIs
this will be unresolved if the animation was
idle at the time the event was generated.
... 225 background tasks api api, background tasks api, guide,
idledeadline, overview, cancel
idlecallback, request
idlecallback the cooperative scheduling of background tasks api (also referred to as the background tasks api or simply the request
idlecallback() api) provides the ability to queue tasks to be executed automatically by the user agent when it determines that there is free time to do so.
... 2129 iirfilternode.getfrequencyresponse() api, audio, iirfilternode, method, reference, web audio api, filter, getfrequencyresponse undefined 2130
idledeadline api, background tasks api,
idledeadline, interface, reference, request
idlecallback see our complete example in the article cooperative scheduling of background tasks api.
...And 5 more matches
Activity Monitor, Battery Status Menu and top
idle wake ups: in mac os 10.9 this measured "package
idle exit" wakeups.
... this is the same value as powermetrics' "pkg
idle" measurement (i.e.
... task_power_info::task_platform_
idle_wakeups obtained from the task_info function.) in mac os 10.10 it appears to have been changed to measure interrupt-level wakeups (a superset of
idle wakeups), which are less interesting.
...And 4 more matches
Power profiling overview
the first is the ability to switch frequently (thousands of times per second) between active and
idle states, and there are actually several different kinds of
idle states.
...the other states have higher numbers and reflect increasing deeper
idle states.
... the deeper an
idle state is, the less power it uses, but the longer it takes to wake up from.
...And 4 more matches
Web Replay
before taking the snapshot, all threads participating in the recording must enter an
idle state, waiting on a thread-specific condition variable.
... to allow these threads to be snapshotted, the call is instead performed on a separate thread that does not participate in the recording, so that the calling thread may enter the correct
idle state even while its progress is blocked on the call completing.
... once all thread are
idle, the main thread computes the memory diff, reads the stacks from each thread and their register state (which each thread recorded by calling setjmp before idling).
...And 3 more matches
Link prefetching FAQ - HTTP
link prefetching is a browser mechanism, which utilizes browser
idle time to download or prefetch documents that the user might visit in the near future.
... the browser observes all of these hints and queues up each unique request to be prefetched when the browser is
idle.
... how is browser
idle time determined?
...And 3 more matches
powermetrics
the following is example output from such an invocation: *** sampled system activity (fri sep 4 17:15:14 2015 +1000) (5009.63ms elapsed) *** *** running tasks *** name id cpu ms/s user% deadlines (<2 ms, 2-5 ms) wakeups (intr, pkg
idle) gpu ms/s com.apple.terminal 293 447.66 274.83 120.35 221.74 firefox 84627 77.59 55.55 15.37 2.59 91.42 42.12 204.47 plugin-container 84628 377.22 37.18 43.91 18.56 178.65 75.85 17.29 terminal ...
... wakeups (intr, pkg
idle): these two columns count how many wakeups occurred, per second, during the sample period.
...the second column counts "package
idle exit" wakeups, which wake up the entire package as opposed to just a single core; such wakeups are particularly expensive, and this count is a subset of the first column's count.
...And 2 more matches
Index - MDN Web Docs Glossary: Definitions of Web-related terms
146 first cpu
idle glossary, lighthouse, performance, web performance first cpu
idle measures when a page is minimally interactive, or when the window is quiet enough to handle user input.
... 150 first interactive glossary, lighthouse, web performance first interactive, also known as first cpu
idle, is a non-standard web performance metric that measures when the user's window is quiet enough to handle user input, or what is termed as minimally interactive.
... 351 rail glossary, rail, timings, web performance rail, an acronym for response, animation,
idle, and load, is a performance model originated by the google chrome team in 2015, focused on user experience and performance within the browser.
... the performance mantra of rail is "focus on the user; the end goal isn't to make your site perform fast on any specific device, it's to make users happy." there are 4 stages of interaction: page load,
idle, response to input, and scrolling and animation.
Performance best practices for Firefox front-end engineers
use request
idlecallback() if you simply cannot avoid doing some kind of long job on the main thread, try to break it up into smaller pieces that you can run when the browser has a free moment to spare, and the user isn't doing anything.
... you can do that using request
idlecallback() and the cooperative scheduling of background tasks api, and doing it only when we have a free second where presumably the user isn’t doing something.
... see also the blog post collective scheduling with request
idlecallback.
... as of bug 1353206, you can also schedule
idle events in non-dom contexts by using services.tm.
idledispatchtomainthread.
RAIL - MDN Web Docs Glossary: Definitions of Web-related terms
rail, an acronym for response, animation,
idle, and load, is a performance model originated by the google chrome team in 2015, focused on user experience and performance within the browser.
... the performance mantra of rail is "focus on the user; the end goal isn't to make your site perform fast on any specific device, it's to make users happy." there are 4 stages of interaction: page load,
idle, response to input, and scrolling and animation.
...
idle when using the main javascript thread, work in chunks for less than 50ms to free up the thread for user interactions.
Sqlite.jsm
shrinkmemoryonconnection
idlems (optional) if defined, the connection will attempt to minimize its memory usage after this many milliseconds of connection
idle.
... the connection is
idle when no statements are executing.
...please note that this is not a timer on the
idle service and this could fire while the application is active.
JS_GetGCParameter
growth_max, jsgc_high_frequency_heap_growth_min, jsgc_low_frequency_heap_growth, jsgc_dynamic_heap_growth, jsgc_dynamic_mark_slice, jsgc_allocation_threshold, jsgc_min_empty_chunk_count, jsgc_max_empty_chunk_count, jsgc_compaction_enabled, jsgc_allocation_threshold_factor, jsgc_allocation_threshold_factor_avoid_interrupt, jsgc_nursery_free_threshold_for_
idle_collection, jsgc_pretenure_threshold, jsgc_pretenure_group_threshold, jsgc_nursery_free_threshold_for_
idle_collection_percent, jsgc_min_nursery_bytes, jsgc_min_last_ditch_gc_period, } jsgcparamkey; value (c++/js shell) description jsgc_max_bytes / "maxbytes" maximum nominal heap before last ditch gc.
... jsgc_nursery_free_threshold_for_
idle_collection / "nurseryfreethresholdfor
idlecollection" collect the nursery in
idle time if it has less than this many bytes of free space.
... jsgc_nursery_free_threshold_for_
idle_collection_percent / "nurseryfreethresholdfor
idlecollectionpercent" collect the nursery in
idle time if it has less than this percentage of capacity free (value from 0 - 99).
Places Expiration
apart this periodic expiration, there are other steps on
idle, on shutdown on clear history.
... on
idle on
idle it expires a larger chunk of pages, then timed expiration is stopped.
... on maintenance when places maintenance runs (about once a week, on daily
idle), an orphans expiration step is executed, this ensures database cleanup.
nsIThreadPool
method overview void shutdown(); attributes attribute type description
idlethreadlimit unsigned long get/set the maximum number of
idle threads that are kept alive.
... once there are more than this many
idle worker threads, the
idle threads start getting destroyed.
...
idlethreadtimeout unsigned long get/set the amount of time in milliseconds that a thread must be
idle before it becomes eligible to be destroyed.
Connection management in HTTP/1.x - HTTP
this connection will not stay open forever:
idle connections are closed after some time (a server may use the keep-alive header to specify a minimum time the connection should be kept open).
...in such cases, using non-persistent connections, which are closed as soon as they are
idle, can provide better performance.
...with http/1.1 or http/1.0, using a persistent connection – at least until it becomes
idle – leads to the best performance.
Performance fundamentals - Web Performance
to improve power usage, simple scenes are rendered using special dedicated composition hardware, while the gpu
idles or turns off.
... another problem that can delay startup is
idle time, caused by waiting for responses to requests (like database loads).
... modern cpus can enter a lower-power mode when mostly
idle.
Tamarin Build System Documentation - Archive of obsolete content
checkins (hg push) to http://hg.mozilla.org/tamarin-redux and sandbox requests will trigger a buildbot build when all build slaves are
idle the next build begins before the build begins buildbot waits for 2 minutes of no checkin activity the build system prioritizes tamarin-redux checkins over sandbox builds when several tamarin-redux checkins occur the newest change is built including all checkins since the last build each sandbox build occurs in the order they were submitted, the submitter may cancel a build.
...the phase state is
idle or active click on the phase (e.g.
Using IO Timeout And Interrupt On NT - Archive of obsolete content
in the meantime, there are dedicated internal threads (called the
idle threads) monitoring the io completion port for completed io requests.
... if a completed io request appears at the io completion port, an
idle thread fetches it and wakes up the thread that issued the io request earlier.
How to Report a Hung Firefox
check the cpu usage of the firefox process(es): is it
idle, using 100% of a core (which may show up as 50%, 25% in your monitoring tool if you have a multi-core processor) or neither?
...if you suspect a hang (as opposed to slow performance), wait one minute on an
idle system before getting the stack trace.
Index
692 nsi
idleservice interfaces, interfaces:scriptable, xpcom, xpcom api reference, xpcom interface reference you can get the
idle time directly, but in most cases you will want to register an observer for a predefined interval.
... the observer will get an '
idle' notification when the user is
idle for that interval (or longer), and receive a 'back' (gecko 3 to 15) or 'active' (gecko 16+) notification when the user starts using their computer again.
PromiseRejectionEvent.promise - Web APIs
examples this example listens for unhandled promises and, if the reason is an object with a code field containing the text "module not ready", it sets up an
idle callback that will retry the task that failed to execute correctly.
... window.onunhandledrejection = function(event) { if (event.reason.code && event.reason.code == "module not ready") { window.request
idlecallback(function(deadline) { loadmodule(event.reason.modulename) .then(performstartup); }); event.preventdefault(); } } specifications specification status comment html living standardthe definition of 'promiserejectionevent.promise' in that specification.
Window - Web APIs
window.cancel
idlecallback() enables you to cancel a callback previously scheduled with window.request
idlecallback.
... window.request
idlecallback() enables the scheduling of tasks during a browser's
idle periods.
ARIA live regions - Accessibility
the screen reader will speak changes whenever the user is
idle.
... <ul id="roster" aria-live="polite" aria-relevant="additions removals"> <!-- use javascript to add remove users here--> </ul> breakdown of aria live properties: aria-live="polite" indicates that the screen reader should wait until the user is
idle before presenting updates to the user.
Using the log role - Accessibility
by default updates contain only the changes to the live region and these are announced when the user is
idle.
... assistive technology products should listen for such an event and notify the user accordingly: screen readers should announce changes inside a log when the user is
idle, unless aria-live=”assertive” has been set and in which case the user may be interrupted.
HTTP Index - HTTP
it is sent on an
idle connection by some servers, even without any previous request by the client.
... 271 link prefetching faq gecko, html, http, link, necko, performance, prefetch, web development link prefetching is a browser mechanism, which utilizes browser
idle time to download or prefetch documents that the user might visit in the near future.
MDN Web Docs Glossary: Definitions of Web-related terms
encapsulation encryption endianness engine entity entity header event exception expando f fallback alignment falsy favicon fetch directive fetch metadata request header firefox os firewall first contentful paint first cpu
idle first input delay first interactive first meaningful paint first paint first-class function flex flex container flex item flexbox forbidden header name forbidden response header name fork fragmentainer frame rate (fps) ftp ftu function f...
Optimizing Applications For NSPR
on nt, this problem is especially obvious because the
idle thread, which is in charge of driving the asynch io completion port, is also blocked.
Necko walkthrough
note: nsconnectionentry has a single nshttpconnectioninfo object attached, a pending queue of nshttptransactions, and 3 arrays for connections: active nshttpconnections
idle nshttpconnections nshalfopensockets nshttpconnectionmgr::trydispatchtransaction there is a series of decisions about whether dispatchtransaction is called, along with good code comments: best to read the code for more detail.
JSAPI User Guide
perhaps the best technique is to perform garbage collection during
idle time, when it is least likely to have any impact on the user.
JS_GC
when your scripts create many objects, you may want to call js_gc directly in your code, particularly when a script terminates or when the application has
idle time.
JS_MaybeGC
calling js_maybegc when the application is
idle can help prevent garbage collection from happening at less convenient times.
JS_THREADSAFE
in a multithreaded program, even if the calling thread has been
idle, other threads may be active or may call js_gc().
History Service Design
actually pages and visits are expired: on page added (lazily) on
idle on shutdown expiration of pages happens when a page is no more referenced, so there are no more visits, nor bookmarks associated with it.
Interfacing with the XPCOM cycle collector
this is the
idle stage of the collector's operation, in which special variants of nsautorefcnt register and unregister themselves very rapidly with the collector, as they pass through a "suspicious" refcount event (from n+1 to n, for nonzero n).
HeapMinimize
if false, the flush will be scheduled to happen when the app is
idle.
nsIMemory
if false, the flush will be scheduled to happen when the app is
idle.
XPCOM Interface Reference
ionnsigsettingsservicensigeolocationprovidernsigeolocationupdatensiglobalhistorynsiglobalhistory2nsiglobalhistory3nsihtmleditornsihttpheaderlistenernsihapticfeedbacknsihttpactivitydistributornsihttpactivityobservernsihttpchannelnsihttpchannelinternalnsihttpheadervisitornsihttpservernsihttpupgradelistenernsiidnservicensiiframeboxobjectnsiiniparsernsiiniparserfactorynsiiniparserwriternsiioservicensi
idleservicensiinprocesscontentframemessagemanagernsiinputstreamnsiinputstreamcallbacknsiinstalllocationnsiinterfacerequestornsijscidnsijsidnsijsiidnsijsonnsijetpacknsijetpackservicensijumplistbuildernsijumplistitemnsilivemarkservicensiloadgroupnsilocalfilensilocalfilemacnsilocalensilocaleservicensilogininfonsiloginmanagernsiloginmanagercryptonsiloginmanageriemigrationhelpernsiloginmanagerprompternsilo...
XPCOM Interface Reference by grouping
nsieventlistenerservice nsieventtarget exception nsiexception extention nsiextensionmanager nsiinstalllocation external nsiexternalprotocolservice frame nsicontentframemessagemanager history nsishentry nsishistory
idle nsi
idleservice internal command nsicommandline nsicommandlinehandler nsicommandlinerunner component nsicomponentmanager preferences nsicontentprefobserver nsicontentprefservice ...
Using the Multiple Accounts API
en to the server preference: mail.server.server.empty_trash_threshhold integer, (should not be imap-specific) max k of wasted diskspace before we purge a folder preference: mail.server.server.delete_model - integer, delete model (move to trash, imap delete, purge immediately, not sure of values) preference: mail.server.server.timeout - integer, number of minutes a connection is
idle before we drop it preference: mail.server.server.capability - list of capabilities of this server preference: mail.server.server.namespace.public - the server's namespace for public folders preference: mail.server.server.namespace.personal - the server's namespace for personal folders preference: mail.server.server.namespace.other_users - the server's namespace for other user's fo...
Drawing and Event Handling - Plugins
however, for the plug-in to draw at any other time, for example, to highlight on a mouse-down event or draw animation at
idle time, it must save the current setting of the port, set up its drawing environment as appropriate, draw, and then restore the port to the previous settings.
Call Tree - Firefox Developer Tools
one thing to be aware of here is that
idle time is classified as gecko, so parts of your profile where your javascript isn't running will contribute gecko samples.
Animation.cancel() - Web APIs
exceptions this method doesn't directly throw exceptions; however, if the animation's playstate is anything but "
idle" when cancelled, the current finished promise is rejected with a domexception named aborterror.
Animation.oncancel - Web APIs
the cancel event can be triggered manually with animation.cancel() when the animation enters the "
idle" play state from another state, such as when the animation is removed from an element before it finishes playing creating a new animation that is initially
idle does not trigger a cancel event on the new animation.
Animation.playState - Web APIs
syntax var currentplaystate = animation.playstate; animation.playstate = newstate; value
idle the current time of the animation is unresolved and there are no pending tasks.
A basic ray-caster - Web APIs
so every update, the raycaster looks to see if you've pressed any keys lately, to conserve calculations by not casting if you're
idle.
Using the Notifications API - Web APIs
the notifications api lets a web page or app send notifications that are displayed outside the page at the system level; this lets web apps send information to a user even if the application is
idle or in the background.
RTCPeerConnection.onicegatheringstatechange - Web APIs
the status is simply presented as text in a <div> element: <div id="icestatus"></div> the actual event handler looks like this: pc.onicegatheringstatechange = function() { let label = "unknown"; switch(pc.icegatheringstate) { case "new": case "complete": label = "
idle"; break; case "gathering": label = "determining route"; break; } document.getelementbyid("icestatus").innerhtml = label; } specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtcpeerconnection.onicegatheringstatechange' in that specification.
Web APIs
ursorsync idbcursorwithvalue idbdatabase idbdatabaseexception idbdatabasesync idbenvironment idbenvironmentsync idbfactory idbfactorysync idbindex idbindexsync idbkeyrange idblocaleawarekeyrange idbmutablefile idbobjectstore idbobjectstoresync idbopendbrequest idbrequest idbtransaction idbtransactionsync idbversionchangeevent idbversionchangerequest iirfilternode
idledeadline imagebitmap imagebitmaprenderingcontext imagecapture imagedata index inputdevicecapabilities inputevent installevent installtrigger intersectionobserver intersectionobserverentry interventionreportbody k keyboard keyboardevent keyboardlayoutmap keyframeeffect keyframeeffectoptions l largestcontentfulpaint layoutshift layoutshiftattribution linearaccelerationsensor li...
Keep-Alive - HTTP
the following identifiers are possible: timeout: indicating the minimum amount of time an
idle connection has to be kept opened (in seconds).
Web Performance
glossary terms beacon brotli compression client hints code splitting cssom domain sharding effective connection type first contentful paint first cpu
idle first input delay first interactive first meaningful paint first paint http http/2 jank latency lazy load long task lossless compression lossy compression main thread minification network throttling packet page load time page prediction parse perceived performance prefetch prerender quic rail real user monitoring resource timing round trip time (rtt) server timing spe...