Пример #1
0
STDMETHODIMP CorProfiler::ModuleAttachedToAssembly(ModuleID module, AssemblyID assembly) {
    String moduleName = CorHelper::GetModuleName(m_profilerInfo, module);
    String assemblyName = CorHelper::GetAssemblyName(m_profilerInfo, assembly);
    LOGINFO4(PROFILER_CALL_METHOD, "Module %X (%s) attached to assembly %X (%s)", 
        module, moduleName.length() == 0 ? _T("noname") : moduleName.c_str(),
        assembly, assemblyName.length() == 0 ? _T("noname") : assemblyName.c_str());

	if (!m_instrumentator.IsAssemblyAcceptable(assemblyName))
	{
		LOGINFO2(SKIP_BY_RULES, " module '%s' was skipped, because no include rule was specified for this assembly '%s'", 
			moduleName.length() == 0 ? _T("noname") : moduleName.c_str(),
			assemblyName.length() == 0 ? _T("noname") : assemblyName.c_str());
		return S_OK;
	}

    m_instrumentator.InstrumentModule(module, moduleName.c_str(), m_profilerInfo, m_binder);
    return S_OK;   
}
Пример #2
0
static void * firefuse_init(struct fuse_conn_info *conn) {
    int rc = 0;

    firelog_init(FIRELOG_FILE, FIRELOG_INFO);
    //firelog_init(FIRELOG_FILE, FIRELOG_TRACE);
    LOGINFO4("FireFUSE %d.%d.%d fuse_root:%s", FireFUSE_VERSION_MAJOR, FireFUSE_VERSION_MINOR, FireFUSE_VERSION_PATCH, fuse_root);
    LOGINFO3("PID:%d UID:%d GIT:%s", (int) getpid(), (int)getuid(), FIREFUSE_GIT_COMMIT);

    pConfigJson = firerest_config(CONFIG_JSON);

    memset(echoBuf, 0, sizeof(echoBuf));

    headcam_image.pData = NULL;
    headcam_image.length = 0;
    headcam_image_fstat.pData = NULL;
    headcam_image_fstat.length = 0;

    LOGRC(rc, "pthread_create(&tidCamera...) -> ", pthread_create(&tidCamera, NULL, &firefuse_cameraThread, NULL));

    //firestep_init();

    return NULL; /* init */
}