Commit 038371be authored by Jiri (George) Lebl's avatar Jiri (George) Lebl Committed by George Lebl

implement profile-generate and profile-use target for profile guided


Mon Mar 02 02:38:40 2009  Jiri (George) Lebl <jirka@5z.com>

	* **/Makefile.am: implement profile-generate and profile-use
	  target for profile guided optimization.  Not quite all working
	  I don't think, but simple tests produce impressive results.

	* gtkextra/gtkplotflux.c: fix bad use of snprintf


svn path=/trunk/; revision=744
parent 0705c9fe
Mon Mar 02 02:38:40 2009 Jiri (George) Lebl <jirka@5z.com>
* **/Makefile.am: implement profile-generate and profile-use
target for profile guided optimization. Not quite all working
I don't think, but simple tests produce impressive results.
* gtkextra/gtkplotflux.c: fix bad use of snprintf
Mon Mar 02 02:07:52 2009 Jiri (George) Lebl <jirka@5z.com>
* src/graphing.c: fix bad drawing of very vertical functions. Our
......
......@@ -19,6 +19,14 @@ if ENABLE_UPDATE_MIMEDB
-update-mime-database "$(DESTDIR)${datadir}/mime"
endif
profile-generate:
make clean
PGO_CFLAGS="-fprofile-generate" make
profile-use:
make clean
PGO_CFLAGS="-fprofile-use" make
EXTRA_DIST = \
genius.spec \
genius.spec.in \
......
......@@ -12,6 +12,8 @@ Changes to 1.0.6
* Fix line plot scale precision in case the x and y axis have very different
scales
* Remove dependence on libgnome/ui
* Some optimizations
* Several other minor bugfixes
* Translation updates
Changes to 1.0.5
......
......@@ -10,9 +10,11 @@ INCLUDES = \
-I$(top_builddir) \
-I$(top_builddir)/ve \
-I$(top_builddir)/gtkextra \
-DGNOMELOCALEDIR=\""$(datadir)/locale"\" \
-DGNOMELOCALEDIR=\""$(datadir)/locale"\" \
$(GENIUS_CFLAGS)
AM_CFLAGS = $(PGO_CFLAGS)
# Use these only really for checking for deprecated use, not all the time
# -DG_DISABLE_DEPRECATED \
# -DGDK_DISABLE_DEPRECATED \
......
......@@ -492,11 +492,11 @@ gtk_plot_flux_get_legend_size(GtkPlotData *data, gint *width, gint *height)
gtk_plot_axis_parse_label(data->gradient, flux->scale_max, flux->labels_precision, flux->labels_style, text);
if(flux->labels_prefix){
g_snprintf(aux_text, 100, "%s%s", flux->labels_prefix, text);
g_snprintf(text, 100, aux_text);
strcpy(text, aux_text);
}
if(flux->labels_suffix) {
g_snprintf(aux_text, 100, "%s%s", text, flux->labels_suffix);
g_snprintf(text, 100, aux_text);
strcpy(text, aux_text);
}
g_snprintf(new_label, 100, "%s", text);
......@@ -575,12 +575,12 @@ gtk_plot_flux_draw_legend(GtkPlotData *data, gint x, gint y)
if(flux->labels_prefix){
gchar aux_text[100];
g_snprintf(aux_text, 100, "%s%s", flux->labels_prefix, text_max);
g_snprintf(text_max, 100, aux_text);
strcpy(text_max, aux_text);
}
if(flux->labels_suffix){
gchar aux_text[100];
g_snprintf(aux_text, 100, "%s%s", text_max, flux->labels_suffix);
g_snprintf(text_max, 100, aux_text);
strcpy(text_max, aux_text);
}
g_snprintf(new_label, 100, "%s", text_max);
......
......@@ -28,6 +28,8 @@ INCLUDES = \
$(GSV_CFLAGS) \
$(EXTRA_WARNING_CFLAGS)
AM_CFLAGS = $(PGO_CFLAGS)
bin_PROGRAMS = @GNOME_GENIUS@ genius
libexec_PROGRAMS = @GENIUS_READLINE_HELPER_FIFO@
......
......@@ -7,6 +7,8 @@ INCLUDES = \
-DGNOMELOCALEDIR=\""$(datadir)/locale"\" \
$(VICIOUS_CFLAGS)
AM_CFLAGS = $(PGO_CFLAGS)
# Use these only really for checking for deprecated use, not all the time
# -DG_DISABLE_DEPRECATED \
# -DGDK_DISABLE_DEPRECATED \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment