app: remove Debug -> Benchmark Projection

This commit is contained in:
Michael Natterer 2012-05-20 20:13:59 +02:00
parent 85a92cf800
commit eec5e9968e
3 changed files with 0 additions and 59 deletions

View File

@ -42,13 +42,6 @@ static const GimpActionEntry debug_actions[] =
G_CALLBACK (debug_mem_profile_cmd_callback),
NULL },
{ "debug-benchmark-projection", NULL,
"Benchmark _Projection", NULL,
"Invalidates the entire projection, measures the time it takes to "
"validate (render) it again, and print the result to stdout.",
G_CALLBACK (debug_benchmark_projection_cmd_callback),
NULL },
{ "debug-show-image-graph", NULL,
"Show Image _Graph", NULL,
"Creates a new image showing the GEGL graph of this image",

View File

@ -27,9 +27,6 @@
#include "actions-types.h"
#include "base/tile-manager.h"
#include "base/tile.h"
#include "core/gimp.h"
#include "core/gimp-utils.h"
#include "core/gimpcontext.h"
@ -37,7 +34,6 @@
#include "core/gimplayer.h"
#include "core/gimppickable.h"
#include "core/gimpprojectable.h"
#include "core/gimpprojection.h"
#include "file/file-utils.h"
@ -61,7 +57,6 @@
/* local function prototypes */
static gboolean debug_benchmark_projection (GimpImage *image);
static gboolean debug_show_image_graph (GimpImage *source_image);
static void debug_dump_menus_recurse_menu (GtkWidget *menu,
@ -95,16 +90,6 @@ debug_mem_profile_cmd_callback (GtkAction *action,
gimp_debug_memsize = FALSE;
}
void
debug_benchmark_projection_cmd_callback (GtkAction *action,
gpointer data)
{
GimpImage *image;
return_if_no_image (image, data);
g_idle_add ((GSourceFunc) debug_benchmark_projection, g_object_ref (image));
}
void
debug_show_image_graph_cmd_callback (GtkAction *action,
gpointer data)
@ -287,42 +272,6 @@ debug_dump_attached_data_cmd_callback (GtkAction *action,
/* private functions */
static gboolean
debug_benchmark_projection (GimpImage *image)
{
GimpProjection *projection = gimp_image_get_projection (image);
GeglBuffer *buffer;
TileManager *tiles;
gint x, y;
gimp_image_invalidate (image,
0, 0,
gimp_image_get_width (image),
gimp_image_get_height (image));
gimp_projection_flush_now (projection);
buffer = gimp_pickable_get_buffer (GIMP_PICKABLE (projection));
tiles = gimp_gegl_buffer_get_tiles (buffer);
GIMP_TIMER_START ();
for (x = 0; x < tile_manager_width (tiles); x += TILE_WIDTH)
{
for (y = 0; y < tile_manager_height (tiles); y += TILE_HEIGHT)
{
Tile *tile = tile_manager_get_tile (tiles, x, y, TRUE, FALSE);
tile_release (tile, FALSE);
}
}
GIMP_TIMER_END ("Validation of the entire projection");
g_object_unref (image);
return FALSE;
}
static gboolean
debug_show_image_graph (GimpImage *source_image)
{

View File

@ -26,7 +26,6 @@
<!-- The debug-menu is automatically excluded for stable releases -->
<menu action="debug-menu" name="Debug">
<menuitem action="debug-mem-profile" />
<menuitem action="debug-benchmark-projection" />
<menuitem action="debug-show-image-graph" />
<separator />
<menuitem action="debug-dump-items" />