Commit bd2ae8ee authored by Philip Chimento's avatar Philip Chimento 🚮

mem: Expose gjs_memory_report() in public API

This function was already used as "public" API, in minijasmine. However,
it seems useful to expose to other embedders such as GNOME Shell.
parent 3b752380
......@@ -24,9 +24,10 @@
#ifndef __GJS_GJS_H__
#define __GJS_GJS_H__
#include <gjs/macros.h>
#include <gjs/context.h>
#include <gjs/coverage.h>
#include <gjs/macros.h>
#include <gjs/mem.h>
#include <gjs/profiler.h>
#include <util/error.h>
......
......@@ -26,7 +26,8 @@
#include <stdbool.h>
#include <glib.h>
#include "gjs/jsapi-util.h"
#include "gjs/macros.h"
G_BEGIN_DECLS
......@@ -68,6 +69,7 @@ GJS_DECLARE_COUNTER(repo)
#define GJS_GET_COUNTER(name) \
g_atomic_int_get(&gjs_counter_ ## name .value)
GJS_EXPORT
void gjs_memory_report(const char *where,
bool die_if_leaks);
......
......@@ -21,17 +21,17 @@
* IN THE SOFTWARE.
*/
#include "config.h"
#include "config.h" // NOLINT(build/include_order)
#include <locale.h>
#include <unistd.h>
#include <gio/gio.h>
#include <girepository.h>
#include <glib.h>
#include <glib/gstdio.h>
#include <gio/gio.h>
#include "gjs/gjs.h"
#include "gjs/mem.h"
G_GNUC_NORETURN
static void
......
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