search for: cache_st

Displaying 15 results from an estimated 15 matches for "cache_st".

Did you mean: cache_set
2008 Jun 05
4
[Bug 16241] New: assertion failed: (movie->cache_state <= SWFDEC_MOVIE_INVALID_CHILDREN)
http://bugs.freedesktop.org/show_bug.cgi?id=16241 Summary: assertion failed: (movie->cache_state <= SWFDEC_MOVIE_INVALID_CHILDREN) Product: swfdec Version: git Platform: x86-64 (AMD64) URL: http://www.cnn.com/ELECTION/2008/primaries/results/score card/#R OS/Version: Linux (All) Stat...
2019 Nov 30
4
[PATCH nbdkit v2 0/3] filters: stats: More useful, more friendly
- Use more friendly output with GiB and MiB/s - Measure time per operation, providing finer grain stats - Add total stats for understanding system throughput - Add missing stats for flush I hope that these changes will help to understand and improve virt-v2v performance. Changes since v1: - Keep bytes values - Increase precision to 0.001 GiB and 0.001 MiB/s - Add total stats - Show time before
2019 Nov 30
0
[PATCH nbdkit v2 2/3] filters: stats: Measure time per operation
...usecs) { - fprintf (fp, "elapsed time: %.3f s\n", usecs / USEC); - - print_stat (&pread_st, usecs); - print_stat (&pwrite_st, usecs); - print_stat (&trim_st, usecs); - print_stat (&zero_st, usecs); - print_stat (&extents_st, usecs); - print_stat (&cache_st, usecs); + const stat total_st = { + .name = "total", + .ops = pread_st.ops + + pwrite_st.ops + + trim_st.ops + + zero_st.ops + + extents_st.ops, + .bytes = pread_st.bytes + + pwrite_st.bytes + + trim_st.bytes + + z...
2019 Nov 30
0
[PATCH nbdkit v2 1/3] filters: stats: Add size in GiB, show rate in MiB/s
...9,6 +49,10 @@ #include "cleanup.h" #include "tvdiff.h" +#define MiB 1048576.0 +#define GiB 1073741824.0 +#define USEC 1000000.0 + static char *filename; static bool append; static FILE *fp; @@ -70,29 +74,35 @@ static stat extents_st = { "extents" }; static stat cache_st = { "cache" }; static inline double -calc_bps (uint64_t bytes, int64_t usecs) +calc_rate (uint64_t bytes, int64_t usecs) { - return 8.0 * bytes / usecs * 1000000.; + return bytes / MiB / usecs * USEC; } static inline void print_stat (const stat *st, int64_t usecs) { if (s...
2019 Nov 30
0
[PATCH nbdkit v2 3/3] filters: stats: Add flush stats
...tats/stats.c b/filters/stats/stats.c index 2c92c65..1d0f242 100644 --- a/filters/stats/stats.c +++ b/filters/stats/stats.c @@ -73,6 +73,7 @@ static stat trim_st = { "trim" }; static stat zero_st = { "zero" }; static stat extents_st = { "extents" }; static stat cache_st = { "cache" }; +static stat flush_st = { "flush" }; static inline double calc_rate (uint64_t bytes, int64_t usecs) @@ -83,14 +84,20 @@ calc_rate (uint64_t bytes, int64_t usecs) static inline void print_stat (const stat *st) { - if (st->ops > 0) - fprintf (fp...
2007 Dec 10
0
6 commits - libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_color_as.c libswfdec/swfdec_graphic_movie.c libswfdec/swfdec_image_decoder.c libswfdec/swfdec_morph_movie.c libswfdec/swfdec_movie_as_drawing.c
....c b/libswfdec/swfdec_movie.c index 567da71..cf6786a 100644 --- a/libswfdec/swfdec_movie.c +++ b/libswfdec/swfdec_movie.c @@ -70,34 +70,87 @@ swfdec_movie_init (SwfdecMovie * movie) swfdec_color_transform_init_identity (&movie->original_ctrans); movie->visible = TRUE; - movie->cache_state = SWFDEC_MOVIE_INVALID_CONTENTS; + movie->cache_state = SWFDEC_MOVIE_INVALID_EXTENTS; + movie->invalidate_last = TRUE; + movie->invalidate_next = TRUE; swfdec_rect_init_empty (&movie->extents); } /** * swfdec_movie_invalidate: - * @movie: movie to invalidate + * @mo...
2019 Dec 03
2
[PATCH nbdkit] filters: stats: Show size and rate in human size
...767.75 MiB/s + flush: 9 ops, 0 bytes, 0 bytes/s =head1 PARAMETERS diff --git a/filters/stats/stats.c b/filters/stats/stats.c index 919dc16..e10307c 100644 --- a/filters/stats/stats.c +++ b/filters/stats/stats.c @@ -71,18 +71,40 @@ static stat extents_st = { "extents" }; static stat cache_st = { "cache" }; static stat flush_st = { "flush" }; -static inline double -calc_bps (uint64_t bytes, int64_t usecs) +#define KiB 1024 +#define MiB 1048576 +#define GiB 1073741824 + +static char * +humansize(uint64_t bytes) { - return 8.0 * bytes / usecs * 1000000.; +...
2007 Aug 22
0
8 commits - libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_sprite_movie_as.c vivified/core
...x, y); - } else { - SwfdecPlayer *player = SWFDEC_PLAYER (SWFDEC_AS_OBJECT (movie)->context); - *x -= SWFDEC_TWIPS_TO_DOUBLE (player->offset_x); - *y -= SWFDEC_TWIPS_TO_DOUBLE (player->offset_y); - *x *= player->scale_x; - *y *= player->scale_y; } if (movie->cache_state >= SWFDEC_MOVIE_INVALID_MATRIX) swfdec_movie_update (movie); @@ -539,6 +526,7 @@ swfdec_movie_get_mouse (SwfdecMovie *mov player = SWFDEC_PLAYER (SWFDEC_AS_OBJECT (movie)->context); *x = player->mouse_x; *y = player->mouse_y; + swfdec_player_stage_to_global (player, x,...
2007 Nov 20
0
7 commits - libswfdec/swfdec_movie.c libswfdec/swfdec_sprite_movie_as.c test/image
...b/libswfdec/swfdec_movie.c index a3772c8..0fbf8a2 100644 --- a/libswfdec/swfdec_movie.c +++ b/libswfdec/swfdec_movie.c @@ -571,6 +571,8 @@ swfdec_movie_global_to_local_matrix (SwfdecMovie *movie, cairo_matrix_t *matrix) cairo_matrix_init_identity (matrix); while (movie) { + if (movie->cache_state >= SWFDEC_MOVIE_INVALID_MATRIX) + swfdec_movie_update (movie); cairo_matrix_multiply (matrix, &movie->inverse_matrix, matrix); movie = movie->parent; } @@ -584,6 +586,8 @@ swfdec_movie_local_to_global_matrix (SwfdecMovie *movie, cairo_matrix_t *matrix) cairo_m...
2007 Jun 21
0
Branch 'as' - 5 commits - libswfdec/Makefile.am libswfdec/swfdec_as_strings.c libswfdec/swfdec_js_net_stream.c libswfdec/swfdec_movie.c libswfdec/swfdec_net_connection.c libswfdec/swfdec_net_stream_as.c libswfdec/swfdec_net_stream.c
...ec_player_update_mouse_cursor (Swfde static void swfdec_player_update_drag_movie (SwfdecPlayer *player) { - double mouse_x, mouse_y; double x, y; SwfdecMovie *movie; @@ -446,23 +445,23 @@ swfdec_player_update_drag_movie (SwfdecP movie = player->mouse_drag; g_assert (movie->cache_state == SWFDEC_MOVIE_UP_TO_DATE); - mouse_x = player->mouse_x; - mouse_y = player->mouse_y; - swfdec_movie_global_to_local (movie->parent, &mouse_x, &mouse_y); - mouse_x = CLAMP (mouse_x, player->mouse_drag_rect.x0, player->mouse_drag_rect.x1); - mouse_y = CLAMP (mouse_y,...
2011 Aug 15
9
[patch v2 0/9] btrfs: More error handling patches
Hi all - The following 9 patches add more error handling to the btrfs code: - Add btrfs_panic - Catch locking failures in {set,clear}_extent_bit - Push up set_extent_bit errors to callers - Push up lock_extent errors to callers - Push up clear_extent_bit errors to callers - Push up unlock_extent errors to callers - Make pin_down_extent return void - Push up btrfs_pin_extent errors to
2007 Oct 17
0
6 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c
...* name; + SwfdecMovieVariableListenerFunction function; +} SwfdecMovieVariableListener; + struct _SwfdecMovie { SwfdecAsObject object; @@ -93,6 +102,7 @@ struct _SwfdecMovie { int depth; /* depth of movie (equals content->depth unless explicitly set) */ SwfdecMovieCacheState cache_state; /* whether we are up to date */ SwfdecMovieState state; /* state the movie is in */ + GSList *variable_listeners; /* textfield's listening to changes in variables - SwfdecMovieVariableListener */ /* static properties (set by PlaceObject tags) */ const char * original_name;...
2007 Jun 13
0
Branch 'as' - 6 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_morph_movie.c libswfdec/swfdec_movie_asprops.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_player.c libswfdec/swfdec_sprite.c
...wasn't given automagically */ GList * list; /* our contained movie clips (ordered by depth) */ int depth; /* depth of movie (equals content->depth unless explicitly set) */ - const SwfdecContent * content; /* the content we are displaying */ SwfdecMovieCacheState cache_state; /* whether we are up to date */ SwfdecMovieState state; /* state the movie is in */ + /* static properties (set by PlaceObject tags) */ + const char * original_name; /* the original name - GC'd and static */ + SwfdecColorTransform original_ctrans; /* color transform set on this...
2007 Dec 13
0
libswfdec-gtk/swfdec_gtk_player.c libswfdec/swfdec_as_date.c libswfdec/swfdec_audio.c libswfdec/swfdec_audio_event.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_interval.c libswfdec/swfdec_key_as.c libswfdec/swfdec_mouse_as.c libswfdec/swfdec_movie.c
..._movie (SwfdecPlayer *player) { + SwfdecPlayerPrivate *priv = player->priv; double x, y; SwfdecMovie *movie; - if (player->mouse_drag == NULL) + if (priv->mouse_drag == NULL) return; - movie = player->mouse_drag; + movie = priv->mouse_drag; g_assert (movie->cache_state == SWFDEC_MOVIE_UP_TO_DATE); - x = player->mouse_x; - y = player->mouse_y; + x = priv->mouse_x; + y = priv->mouse_y; swfdec_player_stage_to_global (player, &x, &y); if (movie->parent) swfdec_movie_global_to_local (movie->parent, &x, &y); - if (pl...
2011 Oct 04
68
[patch 00/65] Error handling patchset v3
Hi all - Here''s my current error handling patchset, against 3.1-rc8. Almost all of this patchset is preparing for actual error handling. Before we start in on that work, I''m trying to reduce the surface we need to worry about. It turns out that there is a ton of code that returns an error code but never actually reports an error. The patchset has grown to 65 patches. 46 of them