aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/profiler/profiler.c
blob: 08787fc1fc3d10ad083864f54d381ea13331f64d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) version 3.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with the program; if not, see <http://www.gnu.org/licenses/>
 *
 *
 * Authors:
 *      Michael Zucchi <notzed@novell.com>
 *
 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
 *
 */

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <string.h>
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>

#include <glib.h>
#include <e-util/e-profile-event.h>

void
org_gnome_evolution_profiler_event(EPlugin *ep, EProfileEventTarget *t)
{
    static FILE *fp;

    if (!fp) {
        char *name;

        name = g_strdup_printf("eprofile.%ld", (long int)getpid());
        fp = fopen(name, "w");
        if (fp)
            fprintf(stderr, "Generating profiling data in `%s'\n", name);
        g_free(name);
    }

    if (fp)
        fprintf(fp, "%d.%d: %s,%s\n", t->tv.tv_sec, t->tv.tv_usec, t->id, t->uid);
}
e='2011-12-24 05:22:15 +0800'>2011-12-242-10/+16 * - Update to 0.31sunpoet2011-12-242-3/+3 * - Update to 0.98sunpoet2011-12-243-19/+4 * - Use TEST_DEPENDS for test-only dependencysunpoet2011-12-241-1/+1 * - Add sixth portion of dependencies needed for Plone 4 import.rm2011-12-2433-0/+1220 * Fix potential out of bounds access in _canonicalize devel/icucrees2011-12-232-0/+27 * Use bsd.port.pre.mk to allow the port to actually find the correct cgi-bindircrees2011-12-232-2/+6 * - Fix origin of this port (s/textproc/devel/)rm2011-12-231-1/+1 * - Update to 0.7.0 to unbreak build after thrift was updated to 0.7.0scheidell2011-12-232-3/+10 * - Update to 2.2wen2011-12-233-996/+546 * - Update to 0.2.5wen2011-12-232-3/+3 * - Update to 0.13.1wen2011-12-233-7/+3 * - stdardize the error messagepgollucci2011-12-231-1/+1 * - Update to 0.8.5wen2011-12-232-5/+8 * - Update to 0.8.7lwhsu2011-12-233-3/+98 * - Mark broken w/ ruby 1.9pgollucci2011-12-231-0/+4 * - Update to 0.13sunpoet2011-12-222-3/+3 * - Update to 1.01sunpoet2011-12-223-20/+47 * Upgrade to version 2.1.11.olgeni2011-12-222-3/+3 * - Add fifth portion of dependencies needed for Plone 4 import.rm2011-12-225-0/+114 * - Update to 2.10culot2011-12-223-14/+19 * Mark as broken on sparc64-9: complains about fpu-sparc.inlines.hh.linimon2011-12-221-1/+7 * - Update to 0.32culot2011-12-223-3/+6 * Remove avr-gcc-42 port. The regular avr-gcc is now at 4.5.1, sojoerg2011-12-2217-1734/+0 * - Update to 0.9.4wen2011-12-222-3/+3 * - Add COMMENTswills2011-12-221-1/+1 * Reassign devel/tinyq to ports@.rakuco2011-12-221-1/+1 * - Update to 0.4.16pgollucci2011-12-222-12/+5 * Update to 3.1.0az2011-12-213-4/+5 * Unbreak.joerg2011-12-211-2/+0 * - Update to 2.06sunpoet2011-12-213-17/+25 * - Update to 2.04culot2011-12-212-3/+3 * update to Nitrogen-20111001bf2011-12-213-144/+219 * Update to 8.21mm2011-12-212-3/+3 * - Standardize the BROKEN= message for ruby 1.9 for rubgems so tb/ph can tag itpgollucci2011-12-214-4/+4 * - Bump the serf lib name as required for 0.7.2 -> 1.0.0 www/serf upgradepgollucci2011-12-211-1/+1 * - Bump the serf lib name as required for 0.7.2 -> 1.0.0 www/serf upgradepgollucci2011-12-211-1/+1 * Fix the plist for this port.joerg2011-12-203-1/+56 * - Update to 0.8.2culot2011-12-202-5/+5 * - Add forth portion of dependencies needed for Plone 4 import.rm2011-12-2041-0/+1083 * Update to 1.002.tobez2011-12-202-3/+3 * - Update to 0.93culot2011-12-202-3/+3 * - Update to 1.3.3clsung2011-12-204-18/+29 * - Reassign to the heap do to mail bouncetabthorpe2011-12-203-3/+3 * - Update to 0.3.5pgollucci2011-12-202-3/+3 * - Update to 2.9.1pgollucci2011-12-202-3/+3 * - Update to 2.12.5pgollucci2011-12-202-3/+3 * - Update to 1.2.13pgollucci2011-12-202-3/+3 * - Update to 1.5.3pgollucci2011-12-202-3/+3 * - Update to 1.1.5pgollucci2011-12-202-3/+3 * - Update to 0.3.6pgollucci2011-12-202-3/+3 * - Update to 1.2.0pgollucci2011-12-202-3/+3 * - Update to 1.241 [1]swills2011-12-203-3/+35 * - Add TEST_DEPENDSswills2011-12-201-0/+3 * - Add missing BUILD_DEPENDSswills2011-12-201-1/+3 * - Add missing BUILD_DEPENDSswills2011-12-201-1/+3 * - Add missing WWW linespgollucci2011-12-204-0/+8 * - One WWW line in pkg-descr will do just finepgollucci2011-12-208-8/+0 * - Point at the homepage consistently as defined by rubygems.orgpgollucci2011-12-2045-46/+46 * fix duplicate latest linkspgollucci2011-12-201-0/+2 * update to 0.9.8 ( http://libvirt.org/news.html )jgh2011-12-205-4/+91 * - Mark BROKEN: does not packagepav2011-12-201-0/+2 * - Comment www/py-plone.app.blob dependency for a while - it wasn't yetrm2011-12-201-2/+2 * - Add third portion of dependencies needed for Plone 4 import.rm2011-12-2041-0/+2087 * - Add second portion of dependencies needed for Plone 4 import.rm2011-12-2041-0/+1771 * Add a workaround (actually, a hack) for bug #13519.joerg2011-12-192-1/+14 * - update to 4.0a1rm2011-12-193-4/+4 * - change my email address to FreeBSD onerm2011-12-192-2/+2 * - Update to 0.3.2clsung2011-12-192-4/+4 * - Update to 1.2.0clsung2011-12-192-3/+3 * The Portable Hardware Locality software packagemaho2011-12-198-0/+560 * Activate the built-in simulator.joerg2011-12-191-1/+2 * Utilities for creating PySide applications.nivit2011-12-198-0/+127 * PySide is Python library to create cross-platform graphical user interfacesnivit2011-12-197-0/+183 * Shiboken is a GeneratorRunner plugin that outputs C++ code for CPythonnivit2011-12-198-0/+110 * GeneratorRunner is a tool that eases the development of binding generatorsnivit2011-12-197-0/+96 * API Extractor library to build PySidenivit2011-12-197-0/+94 * - Mark BROKEN: does not packagepav2011-12-191-0/+2 * - Mark BROKEN: does not configurepav2011-12-191-0/+2 * - Add first portion of dependencies needed for Plone 4 import.rm2011-12-19